Description
tinyobjloader-c's tinyobj_parse_and_index_mtl_file (tinyobj_loader_c.h) reads each line of a .mtl material file into a fixed 4096-byte stack buffer via memcpy(linebuf, p, p_len), guarded only by . The identical vulnerable pattern is duplicated in a second function in the same file.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| syoyo | tinyobjloader-c | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | goxel +1 | No fix yet | — |
| Ubuntu 26.04 LTS | goxel | No fix yet | — |
| Ubuntu 24.04 LTS | goxel | No fix yet | — |
| Ubuntu 22.04 LTS | goxel | No fix yet | — |
| Ubuntu 20.04 LTS | goxel | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | goxel | No fix yet | — |
References
- https://github.com/syoyo/tinyobjloader-c third-party-advisory
- https://github.com/syoyo/tinyobjloader-c/blob/master/tinyobj_loader_c.h third-party-advisory