Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-26921

published high CVSS 3.1 · 7.8

inet: inet_defrag: prevent sk release while still in use

Published
18 Apr 2024, 09:47:58 UTC
Updated
05 Aug 2026, 11:28:19 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab · 7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 9705f447bf9a6cd088300ad2c407b5e1c6591091 · 7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 4318608dc28ef184158b4045896740716bea23f0 · 7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 7d0567842b78390dd9b60f00f1d8f838d540e325 · 7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < f4877225313d474659ee53150ccc3d553a978727 · 7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < e09cbe017311508c21e0739e97198a8388b98981 · 7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 18685451fc4e546fc0e718580d32df3c0e5c8272 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.1 (affected) · 0 to < 4.1 (unaffected · semver) · 5.4.285 through 5.4.* (unaffected · semver) · 5.10.227 through 5.10.* (unaffected · semver) · 5.15.168 through 5.15.* (unaffected · semver) · 6.1.85 through 6.1.* (unaffected · semver) · 6.6.26 through 6.6.* (unaffected · semver) · 6.8.5 through 6.8.* (unaffected · semver) · 6.9 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2024-072 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2024-056 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2024-088 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian bullseye linux Advisory build 5.10.234-1 DLA-4075-1
Show 100 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2025-090 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2024-613 Fixed Not stated Amazon Linux assessment
Oracle Linux 7 kernel-uekaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
AlmaLinux 8 kernel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Oracle Linux 7 kernel-uekx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-debugaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-debug-develaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-develaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-docaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-toolsaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-toolsx86_64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 kernel-uek-tools-libsaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 perfaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 7 python-perfaarch64 Advisory build 0:5.4.17-2136.338.4.1.el7uek ELSA-2024-12884
Oracle Linux 8 bpftoolaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 bpftoolx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernelx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-abi-stablelistsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debugx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-docx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.4.17-2136.338.4.1.el8uek ELSA-2024-12884
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.4.17-2136.338.4.1.el8uek ELSA-2024-12884
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.338.4.1.el8uek ELSA-2024-12884
Oracle Linux 8 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.338.4.1.el8uek ELSA-2024-12884
Oracle Linux 8 kernel-uek-coreaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-corex86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.4.17-2136.338.4.1.el8uek ELSA-2024-12884
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.338.4.1.el8uek ELSA-2024-12884
Oracle Linux 8 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: inet: inet_defrag: prevent sk release while still in use ip_local_out() and other functions can pass skb->sk as function argument. If the skb is a fragment and reassembly happens before such function call returns, the sk must not be released. This affects skb fragments reassembled via netfilter or similar modules, e.g. openvswitch or ct_act.c, when run as part of tx pipeline. Eric Dumazet made an initial analysis of this bug. Quoting Eric: Calling ip_defrag() in output path is also implying skb_orphan(), which is buggy because output path relies on sk not disappearing. A relevant old patch about the issue was : 8282f27449bf ("inet: frag: Always orphan skbs inside ip_defrag()") [..] net/ipv4/ip_output.c depends on skb->sk being set, and probably to an inet socket, not an arbitrary one. If we orphan the packet in ipvlan, then downstream things like FQ packet scheduler will not work properly. We need to change ip_defrag() to only use skb_orphan() when really needed, ie whenever frag_list is going to be used. Eric suggested to stash sk in fragment queue and made an initial patch. However there is a problem with this: If skb is refragmented again right after, ip_do_fragment() will copy head->sk to the new fragments, and sets up destructor to sock_wfree. IOW, we have no choice but to fix up sk_wmem accouting to reflect the fully reassembled skb, else wmem will underflow. This change moves the orphan down into the core, to last possible moment. As ip_defrag_offset is aliased with sk_buff->sk member, we must move the offset into the FRAG_CB, else skb->sk gets clobbered. This allows to delay the orphaning long enough to learn if the skb has to be queued or if the skb is completing the reasm queue. In the former case, things work as before, skb is orphaned. This is safe because skb gets queued/stolen and won't continue past reasm engine. In the latter case, we will steal the skb->sk reference, reattach it to the head skb, and fix up wmem accouting when inet_frag inflates truesize.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

88

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability lives in the IP *output* path and requires an skb that carries a local socket reference (`skb->sk`), which only locally generated traffic has; received packets have `skb->sk == NULL` and cannot trigger it. The attacker must locally send fragmented packets through an ipvlan/OVS/act_ct TX pipeline, so access is via local syscalls (socket send + netlink device configuration). AC:L - The attacker controls every precondition — creating the ipvlan device, enabling conntrack defrag in their own netns, sending the fragments, and closing the socket so the skb holds the last `sk_wmem_alloc` reference — and syzbot produced a working C reproducer. The free and the subsequent dereference occur deterministically in the same call stack, so no uncontrolled race must be won. PR:L - An unprivileged local user obtains CAP_NET_ADMIN and CAP_NET_RAW inside a user namespace (`unshare -Urn`), which is sufficient to create the ipvlan/veth devices, install an nftables/conntrack rule that registers the NF_INET_LOCAL_OUT defrag hook, and open a raw socket to inject IP fragments. No real root in the init namespace is required. UI:N - The attacker triggers the entire sequence from their own process with no action by any other user or administrator. S:U - The use-after-free corrupts kernel memory within the same security authority; there is no VM, IOMMU, or hypervisor boundary crossed. C:H - This is a use-after-free on `struct sock`; the confirmed KASAN splat is a slab-use-after-free *read* in `sk_fullsock()`/`ip_skb_dst_mtu()`, and reallocating the freed slab object under attacker-controlled data yields a general kernel-memory disclosure primitive. I:H - The stale `sk` is written to as well — `nf_queue_entry_get_refs()` does `sock_hold(state->sk)` (refcount increment into freed memory) from the POST_ROUTING hook, and the freed `struct sock` is full of function pointers (`sk_destruct`, `sk_write_space`, `sk_backlog_rcv`, `sk_prot`) that become control-flow hijack primitives after heap grooming. A:H - The bug reliably produces a KASAN-reported slab-use-after-free and, without KASAN, dereferences of freed/reused socket memory and refcount corruption lead to kernel oops or panic.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab (affected · git)7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 9705f447bf9a6cd088300ad2c407b5e1c6591091 (affected · git)7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 4318608dc28ef184158b4045896740716bea23f0 (affected · git)7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 7d0567842b78390dd9b60f00f1d8f838d540e325 (affected · git)7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < f4877225313d474659ee53150ccc3d553a978727 (affected · git)7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < e09cbe017311508c21e0739e97198a8388b98981 (affected · git)7026b1ddb6b8d4e6ee33dc2bd06c0ca8746fa7ab to < 18685451fc4e546fc0e718580d32df3c0e5c8272 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.1 (affected)0 to < 4.1 (unaffected · semver)5.4.285 through 5.4.* (unaffected · semver)5.10.227 through 5.10.* (unaffected · semver)5.15.168 through 5.15.* (unaffected · semver)6.1.85 through 6.1.* (unaffected · semver)6.6.26 through 6.6.* (unaffected · semver)6.8.5 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

3

Linux · cna

inet: inet_defrag: prevent sk release while still in use

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
b7de40a19676549ce51a0f2aa12624d2101b10b1fc694ec54a00b040d99e12eb
Ingested
23 Sep 2026, 08:20:34 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected