CVE-2024-50260
JSON

4.7medium

sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()

Severity
4.7medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.17% (higher than 6% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 699c23f02c65cbfc3e638f14ce0d70c23a2e1f02 before 9afe35fdda16e09d5bd3c49a68ba8c680dd678bd, from 699c23f02c65cbfc3e638f14ce0d70c23a2e1f02 before 740be3b9a6d73336f8c7d540842d0831dc7a808b, 6.10
Not affected: before 6.10, from 6.11.7 up to 6.11.*, from 6.12 up to *
CVE List
linux linux_kernelfrom 6.10 before 6.11.7, 6.12NVD

All scores

CISA-ADP4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: sock_map: corrige una desreferencia de puntero NULL en sock_map_link_update_prog() La siguiente condición de ejecución podría desencadenar una desreferencia de puntero NULL: sock_map_link_detach(): sock_map_link_update_prog(): mutex_lock(&amp;sockmap_mutex); ... sockmap_link-&gt;map = NULL; mutex_unlock(&amp;sockmap_mutex); mutex_lock(&amp;sockmap_mutex); ... sock_map_prog_link_lookup(sockmap_link-&gt;map); mutex_unlock(&amp;sockmap_mutex); Solucione el problema añadiendo una comprobación de puntero NULL. En este caso específico, no tiene sentido actualizar un enlace que se está publicando.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50260 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-50260 changed 2026-06-17Public domain