Description
libsmi through 0.5.0 contains an out-of-bounds write vulnerability in smiValueAsString() in lib/smi.c that allows attackers to overflow a fixed 1024-byte static buffer through hex rendering of OCTET STRING values. Attackers can supply a crafted MIB with an OCTET STRING DEFVAL of 512 or more octets and a leading 0x00 byte to corrupt adjacent library globals and crash smidump or other consumers.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| amartin755 | libsmi | ≤ 0.5.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 | libsmi | No fix yet | — |
| Debian 13 | libsmi | No fix yet | — |
| Debian 12 | libsmi | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libsmi | No fix yet | — |
| Ubuntu 26.04 LTS | libsmi | No fix yet | — |
| Ubuntu 24.04 LTS | libsmi | No fix yet | — |
| Ubuntu 22.04 LTS | libsmi | No fix yet | — |
| Ubuntu 20.04 LTS | libsmi | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libsmi | No fix yet | — |
| Ubuntu 16.04 LTS | libsmi | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | libsmi | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/libsmi-smivalueasstring-octetstring-defval-oob-write technical-description exploit
- https://github.com/amartin755/libsmi/blob/c58307210fe995ec419db976eb234aebc71a9216/lib/smi.c#L479-L566 technical-description
- https://github.com/amartin755/libsmi product
- VulnCheck Advisory: libsmi through 0.5.0 Out-of-Bounds Write via smiValueAsString OCTET STRING DEFVAL third-party-advisory