Review reviewHigh

CVE-2024-56664

Linux Linux, linux kernel

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix race between element replace and close() Element replace (with a socket different from the one stored) may race with socket's close() link popping & unlinking. __sock_map_delete() unconditionally unrefs the (wrong) element: // set map[0] = s0 map_update_elem(map, 0, s0) // drop fd of s0 close(s0) sock_map_close() lock_sock(sk) (s0!) sock_map_remove_links(sk) link = sk_psock_link_pop() sock_map_unlink(sk, link) sock_map_delete_from_link // replace map[0] with s1 map_update_elem(map, 0, s1) sock_map_update_e...

CVSS
7
EPSS
-
- percentile
CISA KEV
Not listed
Published
2024.12.28
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability-
Technical severityCVSS 7

Vulnerability overview

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix race between element replace and close() Element replace (with a socket different from the one stored) may race with socket's close() link popping & unlinking. __sock_map_delete() unconditionally unrefs the (wrong) element: // set map[0] = s0 map_update_elem(map, 0, s0) // drop fd of s0 close(s0) sock_map_close() lock_sock(sk) (s0!) sock_map_remove_links(sk) link = sk_psock_link_pop() sock_map_unlink(sk, link) sock_map_delete_from_link // replace map[0] with s1 map_update_elem(map, 0, s1) sock_map_update_e...

Affected product and versions

Product
Linux Linux, linux kernel
Affected versions
>= 604326b41a6fb9b4a78b6179335decee0365cd8c < 6deb9e85dc9a2ba4414b91c1b5b00b8415910890, >= 604326b41a6fb9b4a78b6179335decee0365cd8c < fdb2cd8957ac51f84c9e742ba866087944bb834b, >= 604326b41a6fb9b4a78b6179335decee0365cd8c < b79a0d1e9a374d1b376933a354c4fcd01fce0365, >= 604326b41a6fb9b4a78b6179335decee0365cd8c < b015f19fedd2e12283a8450dd0aefce49ec57015, >= 604326b41a6fb9b4a78b6179335decee0365cd8c < bf2318e288f636a882eea39f7e1015623629f168, >= 604326b41a6fb9b4a78b6179335decee0365cd8c < ed1fc5d76b81a4d681211333c026202cad4d5649, >= 4.20, >= 4.20 < 6.6.67, >= 6.7 < 6.12.6, 6.13
Fixed versions
6.6.67, 6.12.6

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:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-362, CWE-416
CVE-2024-56664 — Linux Linux, linux kernel | SECUFOCUS NOW