CVE-2024-53236

xsk: Free skb when TX metadata options are invalid

State
Published
Severity
Not scored
Published
Dec 27, 2024
Updated
May 11, 2026
Reserved
Nov 19, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

xsk: Free skb when TX metadata options are invalid

When a new skb is allocated for transmitting an xsk descriptor, i.e., for every non-multibuf descriptor or the first frag of a multibuf descriptor, but the descriptor is later found to have invalid options set for the TX metadata, the new skb is never freed. This can leak skbs until the send buffer is full which makes sending more packets impossible.

Fix this by freeing the skb in the error path if we are currently dealing with the first frag, i.e., an skb allocated in this iteration of xsk_build_skb.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 48eb03dd26304c24f03bdbb9382e89c8564e71df to before 7f0d0dd5a7f437d83cff954bc321f1a9b181efd5Affected
  • 48eb03dd26304c24f03bdbb9382e89c8564e71df to before d5d346deb65efa8453f8481bcea75c1a590439e7Affected
  • 48eb03dd26304c24f03bdbb9382e89c8564e71df to before 0c0d0f42ffa6ac94cd79893b7ed419c15e1b45deAffected
LinuxLinux
  • 6.8Affected
  • before 6.8Not affected
  • 6.11.11 through 6.11.*Not affected
  • 6.12.2 through 6.12.*Not affected
  • 6.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.