CVE-2026-68399
bpf: Fix UAF in sock clone early bailouts
Reported by linux · Published August 10, 2026
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().
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-tools | Amazon Linux | 1:6.1.186-228.374.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| microvm-kernel6.18 | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.186-228.374.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d, 6ac99e8f23d4b10258406ca0dd7bffca5f31da9d |
| Linux | Linux | 5.2, 0, 6.1.191 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| linux | linux_kernel | 5.2, 5.2, 5.2 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel-livepatch-6.1.186-228.374 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
…and 18 more
Timeline
- Aug 10, 2026 Coalition ESS Score
- Aug 10, 2026 CVE Published
- Aug 21, 2026 Security Advisory
- Aug 24, 2026 EPSS Score (11 in total, the first dated here)
- Oct 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-68399
vulnetix vdb fixes CVE-2026-68399
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-68399/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart