CVE-2024-50260

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-50260
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50260.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50260
Downstream
Related
Published
2024-11-09T10:15:13.271Z
Modified
2025-11-28T02:34:10.001322Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()
Details

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

sockmap: fix a NULL pointer dereference in sockmaplinkupdate_prog()

The following race condition could trigger a NULL pointer dereference:

sockmaplinkdetach(): sockmaplinkupdateprog(): mutexlock(&sockmapmutex); ... sockmaplink->map = NULL; mutexunlock(&sockmapmutex); mutexlock(&sockmapmutex); ... sockmapproglinklookup(sockmaplink->map); mutexunlock(&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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50260.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
699c23f02c65cbfc3e638f14ce0d70c23a2e1f02
Fixed
9afe35fdda16e09d5bd3c49a68ba8c680dd678bd
Fixed
740be3b9a6d73336f8c7d540842d0831dc7a808b

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.11.7