CVE-2023-53426
xsk: Fix xsk_diag use-after-free error during socket cleanup
Check your servers for CVE-2023-53426
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-2023-53426 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
xsk: Fix xsk_diag use-after-free error during socket cleanup
Fix a use-after-free error that is possible if the xsk_diag interface is used after the socket has been unbound from the device. This can happen either due to the socket being closed or the device disappearing. In the early days of AF_XDP, the way we tested that a socket was not bound to a device was to simply check if the netdevice pointer in the xsk socket structure was NULL. Later, a better system was introduced by having an explicit state variable in the xsk socket struct. For example, the state of a socket that is on the way to being closed and has been unbound from the device is XSK_UNBOUND.
The commit in the Fixes tag below deleted the old way of signalling that a socket is unbound, setting dev to NULL. This in the belief that all code using the old way had been exterminated. That was unfortunately not true as the xsk diagnostics code was still using the old way and thus does not work as intended when a socket is going down. Fix this by introducing a test against the state variable. If the socket is in the state XSK_UNBOUND, simply abort the diagnostic's netlink operation.
Severity (CVSS)
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)
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.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.53% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 14 Jan 2026):
- 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
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ad7219cd8751bd258b9d1e69ae0654ec00f71875, before 5979985f2d6b565b6cf0f79a62670a2855c0e96c affected from 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, before 6436973164ea5506a495f39e56be5aea375e7832 affected from 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, before 595931912357fa3507e522a7f8a0a76e423c23e4 affected from 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, before 3e019d8a05a38abb5c85d4f1e85fda964610aa14 affected d1579253ffce39986e7a6ab757ac93b2680a665f affected 8a2dea162b92c322f3e42eae0c4a74b8d20aa7a9 affected from 5.15.33, before 5.15.132 affected from 5.16.19, before 5.17 affected from 5.17.2, before 5.18
Other versions: unaffected
|
| Linux |
affected 5.18 unaffected before 5.18 unaffected from 5.15.132 up to and including 5.15.* unaffected from 6.1.54 up to and including 6.1.* unaffected from 6.5.4 up to and including 6.5.* unaffected 6.6 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-2023-53426 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53426
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-2023-53426
trivy image --scanners vuln IMAGE | grep CVE-2023-53426
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
- https://git.kernel.org/stable/c/5979985f2d6b565b6cf0f79a62670a2855c0e96c git.kernel.org
- https://git.kernel.org/stable/c/6436973164ea5506a495f39e56be5aea375e7832 git.kernel.org
- https://git.kernel.org/stable/c/595931912357fa3507e522a7f8a0a76e423c23e4 git.kernel.org
- https://git.kernel.org/stable/c/3e019d8a05a38abb5c85d4f1e85fda964610aa14 git.kernel.org
Source: the record CVE-2023-53426 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.
Vulnpocalypse