Description
PhysicsFS through 3.2.0 contains an out-of-bounds read vulnerability in __PHYSFS_utf8codepoint() that allows attackers to read past name buffers via an off-by-one cursor advance on six-octet UTF-8 sequences. Attackers can supply a crafted archive with entry names ending in six-octet sequences, causing PHYSFS_utf8stricmp() and hashing to over-read and crash the application.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| icculus | PhysicsFS | ≤ 3.2.0 | — |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libphysfs | No fix yet | — |
| Debian 13 | libphysfs | No fix yet | — |
| Debian 12 | libphysfs | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libphysfs | No fix yet | — |
| Ubuntu 26.04 LTS | libphysfs | No fix yet | — |
| Ubuntu 24.04 LTS | libphysfs | No fix yet | — |
| Ubuntu 22.04 LTS | libphysfs | No fix yet | — |
| Ubuntu 20.04 LTS | libphysfs | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libphysfs | No fix yet | — |
| Ubuntu 16.04 LTS | libphysfs | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | physfs | No fix yet | — |
References
- https://github.com/icculus/physfs/issues/79 issue-tracking
- https://hackmd.io/@haind-pwn/physfs-utf8-decoder-overread third-party-advisory
- https://github.com/icculus/physfs/blob/release-3.2.0/src/physfs_unicode.c#L165-L187 technical-description
- https://github.com/icculus/physfs/commit/8a90802778f14dea9c086fb5436839181a3222d5 patch
- VulnCheck Advisory: PhysicsFS through 3.2.0 Out-of-Bounds Read via __PHYSFS_utf8codepoint third-party-advisory