CVE-2025-14958 Details
Description
A security flaw has been discovered in floooh sokol up to 33e2271c431bf21de001e972f72da17a984da932. This vulnerability affects the function _sg_pipeline_common_init in the library sokol_gfx.h. Performing manipulation results in heap-based buffer overflow. The attack needs to be approached locally. The exploit has been released to the public and may be exploited. This product uses a rolling release model to deliver continuous updates. As a result, specific version information for affected or updated releases is not available. The patch is named 33e2271c431bf21de001e972f72da17a984da932. It is suggested to install a patch to address this issue.
A heap-based buffer overflow vulnerability has been identified in the floooh Sokol graphics library, specifically in the version prior to the commit 33e2271c431bf21de001e972f72da17a984da932. The issue arises in the function '_sg_pipeline_common_init' within the 'sokol_gfx.h' file. This vulnerability is caused by an incorrect pointer offset calculation or the use of a large negative index, leading to a write operation 1040 bytes before a valid heap allocation. The vulnerability can be exploited locally, and a public exploit is available.
Users are advised to update to the version containing the patch for this vulnerability, specifically the commit 33e2271c431bf21de001e972f72da17a984da932.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/floooh/sokol/issues/1406#issuecomment-3649515551 | CISA-ADP | ExploitIssue Tracking |
| https://github.com/floooh/sokol/issues/1406 | [email protected] | ExploitIssue Tracking |
| https://github.com/floooh/sokol/issues/1406#issuecomment-3649515551 | [email protected] | ExploitIssue Tracking |
| https://github.com/oneafter/1212/blob/main/hbf1 | [email protected] | Product |
| https://github.com/seyhajin/sokol/commit/33e2271c431bf21de001e972f72da17a984da932 | [email protected] | Patch |
| https://vuldb.com/?ctiid.337594 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.337594 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.717320 | [email protected] | ExploitThird Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| floooh sokol | <= 2025-12-13 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Dec 30, 2025 | Initial Analysis | [email protected] |
| Dec 19, 2025 | New CVE Received | [email protected] |
| Dec 19, 2025 | CVE Modified | CISA-ADP |