7.8high
xsk: cache csum_start/csum_offset to fix TOCTOU in xsk_skb_metadata()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.10% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: xsk: cache csum_start/csum_offset to fix TOCTOU in xsk_skb_metadata() The TX metadata area resides in the UMEM buffer which is memory-mapped and concurrently writable by userspace. In xsk_skb_metadata(), csum_start and csum_offset are read from shared memory for bounds validation, then read again for skb assignment. A malicious userspace application can race to overwrite these values between the two reads, bypassing the bounds check and causing out-of-bounds memory access during checksum computation in the transmit path. Fix this by reading csum_start and csum_offset into local variables once, then using the local copies for both validation and assignment. Note that other metadata fields (flags, launch_time) and the cached csum fields may be mutually inconsistent due to concurrent userspace writes, but this is benign: the only security-critical invariant is that each field's validated value is the same one used, which local caching guarantees.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 48eb03dd26304c24f03bdbb9382e89c8564e71df before eb778aed8a9b2381668fcb1247ae4fa011224768, from 48eb03dd26304c24f03bdbb9382e89c8564e71df before 0dfe05b938435892875e07771170051346412df9, from 48eb03dd26304c24f03bdbb9382e89c8564e71df before bfdfd2706d5fb2cd496a1506e680daf979309c8b, from 48eb03dd26304c24f03bdbb9382e89c8564e71df before 22ba97ea9cc1f63a0d0244fae38057ed452b6ac7, 6.8 Not affected: before 6.8, from 6.12.110 up to 6.12.*, from 6.18.36 up to 6.18.*, from 7.0.13 up to 7.0.*, from 7.1 up to * | CVE List |
| linux linux_kernel | from 6.8 before 6.18.36, from 6.19 before 7.0.13, 7.1 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-53250 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-53250 changed 2026-10-19 | Public domain |