# CVE-2026-68399: bpf: Fix UAF in sock clone early bailouts

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-08-10T12:04:18.837Z
- **Modified:** 2026-11-23T08:17:19.040Z

## Who should check

- Anyone running Linux \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 413fb3e4bec0193d91a648d133c7bc4c0e630ae0; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 5ec83e8875feece269d41a68a794048ed75831e1; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< ac855efc6bb216b262b672af68219e5b731f42a4; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< f6814814b3bdd6ecb6bc1fc53ba4e827e0185f01; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 24139461545e44442df9b80deace26b2eb3e103d; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 01f8a354497ba739f81b691b3702bc4c46500a4d; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 14b49b5ab29979552c219a09e569b424fbbf4a6e; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f
- Anyone running Linux 5.2

## 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().

## Affected and fixed versions

- Linux: \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 413fb3e4bec0193d91a648d133c7bc4c0e630ae0; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 5ec83e8875feece269d41a68a794048ed75831e1; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< ac855efc6bb216b262b672af68219e5b731f42a4; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< f6814814b3bdd6ecb6bc1fc53ba4e827e0185f01; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 24139461545e44442df9b80deace26b2eb3e103d; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 01f8a354497ba739f81b691b3702bc4c46500a4d; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 14b49b5ab29979552c219a09e569b424fbbf4a6e; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-68399. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68399.md
Affected: Linux >= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, < 413fb3e4bec0193d91a648d133c7bc4c0e630ae0; >= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, < 5ec83e8875feece269d41a68a794048ed75831e1; >= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, < ac855efc6bb216b262b672af68219e5b731f42a4; >= 6ac99e8f23d4b10258406ca…
Fixed in: Linux 413fb3e4bec0193d91a648d133c7bc4c0e630ae0, Linux 5ec83e8875feece269d41a68a794048ed75831e1, Linux 24139461545e44442df9b80deace26b2eb3e103d, Linux 01f8a354497ba739f81b691b3702bc4c46500a4d, Linux 14b49b5ab29979552c219a09e569b424fbbf4a6e, Linux 7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-68399 being exploited?

There is no confirmed exploitation: CVE-2026-68399 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-68399?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-68399?

Linux \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 413fb3e4bec0193d91a648d133c7bc4c0e630ae0; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 5ec83e8875feece269d41a68a794048ed75831e1; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< ac855efc6bb216b262b672af68219e5b731f42a4; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< f6814814b3bdd6ecb6bc1fc53ba4e827e0185f01; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 24139461545e44442df9b80deace26b2eb3e103d; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 01f8a354497ba739f81b691b3702bc4c46500a4d; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 14b49b5ab29979552c219a09e569b424fbbf4a6e; \>= 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, \< 7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f; Linux 5.2.

### Is there a fix for CVE-2026-68399?

Yes. Fixed in Linux 413fb3e4bec0193d91a648d133c7bc4c0e630ae0, Linux 5ec83e8875feece269d41a68a794048ed75831e1, Linux 24139461545e44442df9b80deace26b2eb3e103d, Linux 01f8a354497ba739f81b691b3702bc4c46500a4d, Linux 14b49b5ab29979552c219a09e569b424fbbf4a6e, Linux 7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f. Upgrade Linux to 7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f or later.

### How do I check if I'm affected by CVE-2026-68399?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/413fb3e4bec0193d91a648d133c7bc4c0e630ae0>
- other: <https://git.kernel.org/stable/c/5ec83e8875feece269d41a68a794048ed75831e1>
- other: <https://git.kernel.org/stable/c/ac855efc6bb216b262b672af68219e5b731f42a4>
- other: <https://git.kernel.org/stable/c/f6814814b3bdd6ecb6bc1fc53ba4e827e0185f01>
- other: <https://git.kernel.org/stable/c/24139461545e44442df9b80deace26b2eb3e103d>
- other: <https://git.kernel.org/stable/c/01f8a354497ba739f81b691b3702bc4c46500a4d>
- other: <https://git.kernel.org/stable/c/14b49b5ab29979552c219a09e569b424fbbf4a6e>
- other: <https://git.kernel.org/stable/c/7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-68399>

HTML: <https://flawdb.com/CVE-2026-68399> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-68399>
