CVE-2024-53213

net: usb: lan78xx: Fix double free issue with interrupt buffer allocation

7.8 high EPSS 0.23%

Published 27 Dec 2024 Updated 1 Jun 2026 CNA: Linux

Check your servers for CVE-2024-53213

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-53213 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

net: usb: lan78xx: Fix double free issue with interrupt buffer allocation

In lan78xx_probe(), the buffer `buf` was being freed twice: once implicitly through `usb_free_urb(dev->urb_intr)` with the `URB_FREE_BUFFER` flag and again explicitly by `kfree(buf)`. This caused a double free issue.

To resolve this, reordered `kmalloc()` and `usb_alloc_urb()` calls to simplify the initialization sequence and removed the redundant `kfree(buf)`. Now, `buf` is allocated after `usb_alloc_urb()`, ensuring it is correctly managed by `usb_fill_int_urb()` and freed by `usb_free_urb()` as intended.

Severity (CVSS)

7.8 high CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.9% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 1 Oct 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 3281ebb3dc5ef19507e65523e9f8c00e20b285ca, before cc5aa8e3ad69dcedeba79e667d4a2efb72a305af
affected from dcafa5a8452738eb28085f559b0683d55e22b2f5, before 2970ef2fce90c661952ec2b451b0276d5f8d6180
affected from a6df95cae40bee555e01a37b4023ce8e97ffa249, before 977128343fc2a30737399b58df8ea77e94f164bd
affected from a6df95cae40bee555e01a37b4023ce8e97ffa249, before a422ebec863d99d5607fb41bb7af3347fcb436d3
affected from a6df95cae40bee555e01a37b4023ce8e97ffa249, before b09512aea6223eec756f52aa584fc29eeab57480
affected from a6df95cae40bee555e01a37b4023ce8e97ffa249, before 7ac9f3c981eeceee2ec4d30d850f4a6f50a1ec40
affected from a6df95cae40bee555e01a37b4023ce8e97ffa249, before 03819abbeb11117dcbba40bfe322b88c0c88a6b6
affected from 5.10.252, before 5.10.258
affected from 5.15.202, before 5.15.209
Other versions: unaffected
Linux
affected 5.17
unaffected before 5.17
unaffected from 5.10.258 up to and including 5.10.*
unaffected from 5.15.209 up to and including 5.15.*
unaffected from 6.1.120 up to and including 6.1.*
unaffected from 6.6.64 up to and including 6.6.*
unaffected from 6.11.11 up to and including 6.11.*
unaffected from 6.12.2 up to and including 6.12.*
unaffected 6.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-53213 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-53213

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-53213
trivy image --scanners vuln IMAGE | grep CVE-2024-53213

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-53213 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.