Kernel heap overflow from a socket receive call with very large buffer sizes
KSA-2026-0046
- Status
- Fixed, update coming
- Severity
- High
- CVE
- CVE-2026-128751
- Affected versions
- 0.2.0 to 0.2.6
- Fixed in
- the next update after 0.2.6 (PR #7)
- Published
- 2026-11-02
- Updated
- 2026-11-18
Summary
recvmsg added up the program's buffer sizes with no limit. Sizes that added up past the 64-bit limit made the kernel allocate a tiny buffer and copy a whole message into it, and very large sizes made it write through a null pointer. A local program could corrupt kernel memory this way and possibly take over the PC.
Each buffer and the total are now limited to 16 MB, and allocation failures return an error.
Workaround
Install the next update when it is offered. Until then there is no workaround.
Credit
Brent Gordon