CVE-2024-40954
HIGH 7.8 ALL-YEARSIn the Linux kernel, the following vulnerability has been resolved: net: do not leave a dangling sk pointer, when socket creation fails It is possible to trigger a use-after-free by: * attaching an fentry probe to __sock_release() and the probe calling the bpf_get_socket_cookie() helper * running traceroute -I 1.1.1.1 on a freshly booted VM A KASAN enabled kernel will log something like below (decoded and stripped): ================================================================== BUG: KASAN: slab-use-after-free in __sock_gen_cookie (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-instrumented.h:1611 net/core/sock_diag.c:29) Read of size 8 at addr ffff888007110dd8 by task traceroute/299 CPU: 2 PID: 299 Comm: traceroute Tainted: G E 6.10.0-rc2+ #2 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: <TASK> dump_stack_lvl (lib/dump_stack.c:117 (discriminator 1)) print_report (mm/kasan/report.c:378 mm/kasan/report.c:488) ? __sock_gen_cookie (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-instrumented.h:1611 net/core/sock_diag.c:29) kasan_report (mm/kasan/report.c:603) ? __sock_gen_cookie (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-instrumented.h:1611 net/core/sock_diag.c:29) k
Severe if exploited (CVSS 7.8), but no confirmed exploitation. Patch on a normal cadence.
Exploitation likelihood
0.3%chance of exploitation in 30 days · 17th percentile
Impact if exploited
7.8CVSS 3.1 · HIGH · CNA
- ConfidentialityHigh
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ⚠Access: Requires local access to the host
- ⚠Privileges: Requires a low-privilege account
- ✓User interaction: No user interaction needed
- ✓Complexity: No special conditions — reliably repeatable
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Tracked sources are checked weekly for the full archive, including PoCs published after the original disclosure. A later release appears after a tracked source lists it and a refresh succeeds.
Weakness (CWE)
- CWE-416: Use after free
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References and research data (JSON)
Vendor product assessments
Showing 32 of 501 vendor product statements; 469 omitted. Read the full vendor advisory.
bpftool-debuginfo-0:7.3.0-427.31.1.el9_4.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_4?arch=aarch64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
kernel-rt-debug-debuginfo-0:5.14.0-427.31.1.el9_4.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_4?arch=aarch64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
bpftool-debuginfo-0:4.18.0-553.22.1.el8_10.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_10?arch=aarch64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
kernel-debuginfo-0:4.18.0-553.22.1.el8_10.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_10?arch=ppc64le
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
perf-0:4.18.0-553.22.1.el8_10.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_10?arch=s390x
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
kernel-abi-stablelists-0:5.14.0-427.31.1.el9_4.noarch as a component of Red Hat Enterprise Linux BaseOS (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_4?arch=noarch
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
kernel-modules-0:5.14.0-427.31.1.el9_4.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_4?arch=aarch64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
perf-debuginfo-0:5.14.0-427.31.1.el9_4.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_4?arch=ppc64le
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
kernel-64k-debug-debuginfo-0:5.14.0-427.31.1.el9_4.aarch64 as a component of Red Hat Enterprise Linux CRB (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_4?arch=aarch64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
python3-perf-debuginfo-0:5.14.0-427.31.1.el9_4.ppc64le as a component of Red Hat Enterprise Linux CRB (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_4?arch=ppc64le
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
kernel-tools-debuginfo-0:5.14.0-427.31.1.el9_4.x86_64 as a component of Red Hat Enterprise Linux NFV (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_4?arch=x86_64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
python3-perf-debuginfo-0:5.14.0-427.31.1.el9_4.x86_64 as a component of Red Hat Enterprise Linux RT (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_4?arch=x86_64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
kernel as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- no fix planned: Out of support scope
kernel-doc as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-doc
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- no fix planned: Out of support scope
kernel.src as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel?arch=src
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- no fix planned: Out of support scope
kernel-bootwrapper as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-bootwrapper
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- no fix planned: Out of support scope
kernel-kdump as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-kdump
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- no fix planned: Out of support scope
kernel-rt-devel as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt-devel
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- no fix planned: Out of support scope
kernel-rt-trace-kvm as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt-trace-kvm
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- no fix planned: Out of support scope
perf as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/perf
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- no fix planned: Out of support scope
kernel-rt-debug-devel as a component of Red Hat Enterprise Linux 9 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt-debug-devel
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- none available: Affected
kernel-rt-debug-modules-internal as a component of Red Hat Enterprise Linux 9 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt-debug-modules-internal
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- none available: Affected
kernel-rt-modules as a component of Red Hat Enterprise Linux 9 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt-modules
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- none available: Affected
kernel-rt.src as a component of Red Hat Enterprise Linux 9 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt?arch=src
- workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- none available: Affected
kernel-headers-0:5.14.0-427.31.1.el9_4.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9) · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/[email protected]_4?arch=aarch64
Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00kernel-headers-0:5.14.0-427.31.1.el9_4.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9) · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/[email protected]_4?arch=ppc64le
Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00kernel-headers-0:5.14.0-427.31.1.el9_4.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9) · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/[email protected]_4?arch=s390x
Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00kernel-headers-0:5.14.0-427.31.1.el9_4.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9) · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/[email protected]_4?arch=x86_64
Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00kernel-cross-headers-0:5.14.0-427.31.1.el9_4.aarch64 as a component of Red Hat Enterprise Linux CRB (v. 9) · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/[email protected]_4?arch=aarch64
Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00kernel-cross-headers-0:5.14.0-427.31.1.el9_4.ppc64le as a component of Red Hat Enterprise Linux CRB (v. 9) · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/[email protected]_4?arch=ppc64le
Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00kernel-cross-headers-0:5.14.0-427.31.1.el9_4.s390x as a component of Red Hat Enterprise Linux CRB (v. 9) · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/[email protected]_4?arch=s390x
Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00kernel-cross-headers-0:5.14.0-427.31.1.el9_4.x86_64 as a component of Red Hat Enterprise Linux CRB (v. 9) · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/[email protected]_4?arch=x86_64
Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
Known Affected Software Configurations
| Vendor | Product | Version range |
|---|---|---|
| Linux | Linux Kernel | ≥ 5.12 and < 5.15.162 |
| Linux | Linux Kernel | ≥ 5.16 and < 6.1.96 |
| Linux | Linux Kernel | ≥ 6.2 and < 6.6.36 |
| Linux | Linux Kernel | ≥ 6.7 and < 6.9.7 |
| Linux | Linux Kernel | 6.10 |
| Linux | Linux Kernel | 6.10 |
| Linux | Linux Kernel | 6.10 |
| Linux | Linux Kernel | 6.10 |
All CVSS metrics
- HIGH 7.8 v3.1 · CNA Primary
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - HIGH 7.8 v3.1 · NVD Secondary
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
Patches & mitigations
- https://git.kernel.org/stable/c/78e4aa528a7b1204219d808310524344f627d069 CVE record · Linux · Updated 2026-08-05T11:34:13.912Z
CVE record · CVE · Updated 2025-11-03T21:58:18.562Z
NVD · CVE-2024-40954 · Updated 2026-08-04T11:19:09.170 - https://git.kernel.org/stable/c/893eeba94c40d513cd0fe6539330ebdaea208c0e CVE record · Linux · Updated 2026-08-05T11:34:13.912Z
CVE record · CVE · Updated 2025-11-03T21:58:18.562Z
NVD · CVE-2024-40954 · Updated 2026-08-04T11:19:09.170 - https://git.kernel.org/stable/c/454c454ed645fed051216b79622f7cb69c1638f5 CVE record · Linux · Updated 2026-08-05T11:34:13.912Z
CVE record · CVE · Updated 2025-11-03T21:58:18.562Z
NVD · CVE-2024-40954 · Updated 2026-08-04T11:19:09.170 - https://git.kernel.org/stable/c/5dfe2408fd7dc4d2e7ac38a116ff0a37b1cfd3b9 CVE record · Linux · Updated 2026-08-05T11:34:13.912Z
CVE record · CVE · Updated 2025-11-03T21:58:18.562Z
NVD · CVE-2024-40954 · Updated 2026-08-04T11:19:09.170 - https://git.kernel.org/stable/c/6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2 CVE record · Linux · Updated 2026-08-05T11:34:13.912Z
CVE record · CVE · Updated 2025-11-03T21:58:18.562Z
NVD · CVE-2024-40954 · Updated 2026-08-04T11:19:09.170
Advisories
- https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-40954.json Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-38841 EUVD · EUVD-2024-38841
Technical & other
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.htmlCVE record · CVE · Updated 2025-11-03T21:58:18.562Z
NVD · CVE-2024-40954 · Updated 2026-08-04T11:19:09.170 - https://access.redhat.com/security/cve/CVE-2024-40954 Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
- https://bugzilla.redhat.com/show_bug.cgi?id=2297538 Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
- https://www.cve.org/CVERecord?id=CVE-2024-40954 Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
- https://nvd.nist.gov/vuln/detail/CVE-2024-40954 Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
- https://lore.kernel.org/linux-cve-announce/2024071223-CVE-2024-40954-093b@gregkh/T Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
- https://access.redhat.com/errata/RHSA-2024:5363 Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
- https://access.redhat.com/errata/RHSA-2024:7000 Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
- https://access.redhat.com/errata/RHSA-2024:7001 Red Hat · CVE-2024-40954 · Updated 2026-08-04T18:37:45+00:00
Sources: NVD · CVE.org · All sources and attribution · EPSS