CVE Explore

NULL pointer dereference in Linux

CVE-2024-50260

CVSS v3
4.7 Medium
Public exploits
None known
EPSS
0.002 · 6.1th percentile
Published
2024-11-09

In the Linux kernel, the following vulnerability has been resolved:

sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()

The following race condition could trigger a NULL pointer dereference:

sock_map_link_detach(): sock_map_link_update_prog():
mutex_lock(&sockmap_mutex);
...
sockmap_link->map = NULL;
mutex_unlock(&sockmap_mutex);
mutex_lock(&sockmap_mutex);
...
sock_map_prog_link_lookup(sockmap_link->map);
mutex_unlock(&sockmap_mutex);
<continue>

Fix it by adding a NULL pointer check. In this specific case, it makes
no sense to update a link which is being released.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 4.7 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H.

Attack Vector
Local AV:L
Attack Complexity
High AC:H
Privileges Required
Low PR:L
User Interaction
None UI:N
Scope
Unchanged S:U
Confidentiality
None C:N
Integrity
None I:N
Availability
High A:H

EPSS exploit prediction

EPSS 0.002, 6.1th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 699c23f02c65cbfc3e638f14ce0d70c23a2e1f02, 6.10, 0
  • Linux Kernel — versions 6.12

Weakness classification (CWE)

References