An out-of-bounds read vulnerability was found in swtpm's SWTPM_NVRAM_CheckHeader() function. The entry guard checks the buffer length against sizeof(b...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Alpine:v3.21swtpm |
< 0.10.2→ 0.10.2 |
0.10.2 |
| Alpine:v3.22swtpm |
< 0.10.2→ 0.10.2 |
0.10.2 |
| Alpine:v3.23swtpm |
< 0.10.2→ 0.10.2 |
0.10.2 |
| Alpine:v3.24swtpm |
< 0.10.2→ 0.10.2 |
0.10.2 |
Original description The description as published by the source.
An out-of-bounds read vulnerability was found in swtpm's SWTPM_NVRAM_CheckHeader() function. The entry guard checks the buffer length against sizeof(bh), where bh is a pointer, instead of sizeof(*bh), the actual struct size. This allows an undersized buffer to pass validation, causing a 2-byte heap overread on 64-bit systems (6 bytes on 32-bit) when accessing the totlen field. This may cause daemon termination on some platforms and leaks heap data to the log.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security.alpinelinux.org