Sequoia: size_t-to-int truncation in the Linux kernel seq_file path helper
A path buffer size held as a size_t is passed into an int length parameter; a buffer over 2GB narrows to a negative int, defeats a bounds guard, and drives a fixed out-of-bounds write below the kernel buffer.
- Product
- Linux kernel (fs/seq_file.c)
- Vendor
- Linux
- Affected
- 3.16 through 5.13.3
- Fixed in
- 5.13.4 (and stable backports: 5.10.52, 5.4.134, and earlier series)
- Weakness
- CWE-190
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 20 Jul 2021
Classified as
References
Related CVEs
- CVE-2019-11477high 7.52019
SACK Panic TCP segment-count overflow
Crafted TCP SACK processing coalesced more than 65,535 tiny segments into a socket buffer, wrapping a 16-bit count and reaching a kernel panic assertion.
- CVE-2026-46300high 7.82026
Fragnesia: Linux shared-fragment marker loss
Socket-buffer coalescing can transfer page-backed fragment descriptors without their shared marker, causing later ESP processing to decrypt shared data in place.
- CVE-2023-32434high 7.82023
Operation Triangulation: XNU memory-entry integer overflow
A wrapping sum in mach_make_memory_entry_internal accepts an enormous child memory entry as if it fit inside its parent, enabling out-of-range mappings from a privileged memory region.
- CVE-2023-21716critical 9.82023
Microsoft Word RTF font-table integer overflow
More than 32,760 RTF font records drive signed 16-bit parser state through a wrapped address calculation, turning the next font-table store into an out-of-bounds heap write.