CVE-2026-68399
bpf: Fix UAF in sock clone early bailouts
Check your servers for CVE-2026-68399
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-2026-68399 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:
bpf: Fix UAF in sock clone early bailouts
Similar to recent commit 9b51a6155d14 ("bpf,fork: wipe ->bpf_storage before bailouts that access it"), sk_clone() performs an initial shallow copy of the socket field ->sk_bpf_storage via sock_copy() for the cloned socket newsk.
If sk_clone() bails out early (e.g. if sk_filter_charge() fails) prior to calling bpf_sk_storage_clone(), newsk->sk_bpf_storage still points to the parent socket's BPF local storage. When newsk is subsequently freed via sk_free(), the deallocation path (__sk_destruct() -> bpf_sk_storage_free()) destroys the parent socket's BPF local storage, leading to a use-after-free (UAF) on the parent socket.
Fix this by resetting newsk->sk_bpf_storage to NULL immediately after sock_copy() in sk_clone(), and remove the now redundant initialization from bpf_sk_storage_clone().
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)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.79% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Oct 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 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, before 413fb3e4bec0193d91a648d133c7bc4c0e630ae0 affected from 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, before 5ec83e8875feece269d41a68a794048ed75831e1 affected from 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, before ac855efc6bb216b262b672af68219e5b731f42a4 affected from 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, before f6814814b3bdd6ecb6bc1fc53ba4e827e0185f01 affected from 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, before 24139461545e44442df9b80deace26b2eb3e103d affected from 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, before 01f8a354497ba739f81b691b3702bc4c46500a4d affected from 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, before 14b49b5ab29979552c219a09e569b424fbbf4a6e affected from 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, before 7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f
Other versions: unaffected
|
| Linux |
affected 5.2 unaffected before 5.2 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.114 up to and including 6.12.* unaffected from 6.18.57 up to and including 6.18.* unaffected from 7.1.6 up to and including 7.1.* unaffected 7.2 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-2026-68399 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-68399
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-2026-68399
trivy image --scanners vuln IMAGE | grep CVE-2026-68399
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/413fb3e4bec0193d91a648d133c7bc4c0e630ae0 git.kernel.org
- https://git.kernel.org/stable/c/5ec83e8875feece269d41a68a794048ed75831e1 git.kernel.org
- https://git.kernel.org/stable/c/ac855efc6bb216b262b672af68219e5b731f42a4 git.kernel.org
- https://git.kernel.org/stable/c/f6814814b3bdd6ecb6bc1fc53ba4e827e0185f01 git.kernel.org
- https://git.kernel.org/stable/c/24139461545e44442df9b80deace26b2eb3e103d git.kernel.org
- https://git.kernel.org/stable/c/01f8a354497ba739f81b691b3702bc4c46500a4d git.kernel.org
- https://git.kernel.org/stable/c/14b49b5ab29979552c219a09e569b424fbbf4a6e git.kernel.org
- https://git.kernel.org/stable/c/7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f git.kernel.org
Source: the record CVE-2026-68399 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