Review reviewHigh

CVE-2024-40954

Linux Linux, linux kernel

In 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/...

CVSS
7.8
EPSS
0.26%
17.3% percentile
CISA KEV
Not listed
Published
2024.07.12
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.26%
Technical severityCVSS 7.8

Vulnerability overview

In 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/...

Affected product and versions

Product
Linux Linux, linux kernel
Affected versions
>= c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd < 78e4aa528a7b1204219d808310524344f627d069, >= c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd < 893eeba94c40d513cd0fe6539330ebdaea208c0e, >= c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd < 454c454ed645fed051216b79622f7cb69c1638f5, >= c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd < 5dfe2408fd7dc4d2e7ac38a116ff0a37b1cfd3b9, >= c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd < 6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2, >= 5.12, >= 5.12 < 5.15.162, >= 5.16 < 6.1.96, >= 6.2 < 6.6.36, >= 6.7 < 6.9.7, 6.10
Fixed versions
5.15.162, 6.1.96, 6.6.36, 6.9.7

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-416
CVE-2024-40954 — Linux Linux, linux kernel | SECUFOCUS NOW