Bug 2492815 (CVE-2026-53250) - CVE-2026-53250 kernel: xsk: cache csum_start/csum_offset to fix TOCTOU in xsk_skb_metadata()
Summary: CVE-2026-53250 kernel: xsk: cache csum_start/csum_offset to fix TOCTOU in xsk...
Keywords:
Status: NEW
Alias: CVE-2026-53250
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-25 10:07 UTC by OSIDB Bzimport
Modified: 2026-06-29 13:48 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-25 10:07:13 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-06-29 13:44:02 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026062513-CVE-2026-53250-e8f5@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.