CVE-2023-53338
lwt: Fix return values of BPF xmit ops
Check your servers for CVE-2023-53338
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-53338 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:
lwt: Fix return values of BPF xmit ops
BPF encap ops can return different types of positive values, such like NET_RX_DROP, NET_XMIT_CN, NETDEV_TX_BUSY, and so on, from function skb_do_redirect and bpf_lwt_xmit_reroute. At the xmit hook, such return values would be treated implicitly as LWTUNNEL_XMIT_CONTINUE in ip(6)_finish_output2. When this happens, skbs that have been freed would continue to the neighbor subsystem, causing use-after-free bug and kernel crashes.
To fix the incorrect behavior, skb_do_redirect return values can be simply discarded, the same as tc-egress behavior. On the other hand, bpf_lwt_xmit_reroute returns useful errors to local senders, e.g. PMTU information. Thus convert its return values to avoid the conflict with LWTUNNEL_XMIT_CONTINUE.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an 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.57%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 48.7% 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 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2, before 67f8f2bae8e7ac72e09def2b667e44704c4d1ee1 affected from 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2, before a97f221651fcdc891166e9bc270e3d9bfa5a0080 affected from 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2, before e3f647e4b642f9f6d32795a16f92c116c138d2af affected from 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2, before 065d5f17096ec9161180e2c890afdff4dc6125f2 affected from 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2, before d68c17402442f5f494a2c3ebde5cb82f6aa9160a affected from 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2, before 65583f9e070db7bece20710cfa2e3daeb0b831d9 affected from 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2, before 29b22badb7a84b783e3a4fffca16f7768fb31205
Other versions: unaffected
|
| Linux |
affected 4.10 unaffected before 4.10 unaffected from 5.4.257 up to and including 5.4.* unaffected from 5.10.195 up to and including 5.10.* unaffected from 5.15.132 up to and including 5.15.* unaffected from 6.1.53 up to and including 6.1.* unaffected from 6.4.16 up to and including 6.4.* unaffected from 6.5.3 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-53338 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53338
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-53338
trivy image --scanners vuln IMAGE | grep CVE-2023-53338
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/67f8f2bae8e7ac72e09def2b667e44704c4d1ee1 git.kernel.org
- https://git.kernel.org/stable/c/a97f221651fcdc891166e9bc270e3d9bfa5a0080 git.kernel.org
- https://git.kernel.org/stable/c/e3f647e4b642f9f6d32795a16f92c116c138d2af git.kernel.org
- https://git.kernel.org/stable/c/065d5f17096ec9161180e2c890afdff4dc6125f2 git.kernel.org
- https://git.kernel.org/stable/c/d68c17402442f5f494a2c3ebde5cb82f6aa9160a git.kernel.org
- https://git.kernel.org/stable/c/65583f9e070db7bece20710cfa2e3daeb0b831d9 git.kernel.org
- https://git.kernel.org/stable/c/29b22badb7a84b783e3a4fffca16f7768fb31205 git.kernel.org
Source: the record CVE-2023-53338 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