CVE-2024-50260

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-50260
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50260.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-50260
Downstream
Related
Published
2024-11-09T10:15:13Z
Modified
2025-10-15T17:45:17.223896Z
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.

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
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
699c23f02c65cbfc3e638f14ce0d70c23a2e1f02
Fixed
740be3b9a6d73336f8c7d540842d0831dc7a808b

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.11.1
v6.11.2
v6.11.3
v6.11.4
v6.11.5
v6.11.6
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.9
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.11.7