# CVE-2026-53250: xsk: cache csum_start/csum_offset to fix TOCTOU in xsk_skb_metadata()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-25T08:39:42.630Z
- Modified: 2026-10-19T20:19:12.307Z
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.8 before 6.18.36; from 6.19 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/eb778aed8a9b2381668fcb1247ae4fa011224768>
- <https://git.kernel.org/stable/c/0dfe05b938435892875e07771170051346412df9> (patch)
- <https://git.kernel.org/stable/c/bfdfd2706d5fb2cd496a1506e680daf979309c8b> (patch)
- <https://git.kernel.org/stable/c/22ba97ea9cc1f63a0d0244fae38057ed452b6ac7> (patch)

## Sources

- CVE List: [CVE-2026-53250](https://www.cve.org/CVERecord?id=CVE-2026-53250), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-53250](https://nvd.nist.gov/vuln/detail/CVE-2026-53250), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-53250 · Whole record: https://cve.day/CVE-2026-53250.json · Rebuilt by cve.day 2026-11-25T22:59:26.333Z
