CVE-2025-15155
Description
A vulnerability was detected in floooh sokol up to 16cbcc864012898793cd2bc57f802499a264ea40. The impacted element is the function _sg_pipeline_desc_defaults in the library sokol_gfx.h. The manipulation results in stack-based buffer overflow. The attack requires a local approach. The exploit is now public and may be used. This product does not use versioning. This is why information about affected and unaffected releases are unavailable. The patch is identified as 5d11344150973f15e16d3ec4ee7550a73fb995e0. It is advisable to implement a patch to correct this issue.
Affected products
1Patches
15d1134415097sokol_gfx.h: fix another gap in assert check (fixes #1405)
1 file changed · +1 −1
sokol_gfx.h+1 −1 modified@@ -24077,7 +24077,7 @@ _SOKOL_PRIVATE sg_pipeline_desc _sg_pipeline_desc_defaults(const sg_pipeline_des if (a_state->format == SG_VERTEXFORMAT_INVALID) { break; } - SOKOL_ASSERT(a_state->buffer_index < SG_MAX_VERTEXBUFFER_BINDSLOTS); + SOKOL_ASSERT((a_state->buffer_index >= 0) && (a_state->buffer_index < SG_MAX_VERTEXBUFFER_BINDSLOTS)); if (use_auto_offset) { a_state->offset = auto_offset[a_state->buffer_index]; }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- github.com/floooh/sokol/commit/5d11344150973f15e16d3ec4ee7550a73fb995e0nvdPatch
- github.com/floooh/sokol/issues/1405nvdExploitIssue Tracking
- github.com/floooh/sokol/issues/1406nvdExploitIssue Tracking
- vuldb.comnvdExploitThird Party AdvisoryVDB Entry
- vuldb.comnvdThird Party AdvisoryVDB Entry
- github.com/oneafter/1212/blob/main/hbf1nvdNot Applicable
- vuldb.comnvdPermissions RequiredVDB Entry
News mentions
0No linked articles in our index yet.