bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself (Linux Linux)

CVE-2023-52735
CRITICAL 9.1

At a glance

Source
NVD
EPSS
EPSS 1.22 % · percentile 69 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself sock_map proto callbacks should never call themselves by design. Protect against bugs like [1] and break out of the recursive loop to avoid a stack overflow in favor of a resource leak. [1] https://lore.kernel.org/all/00000000000073b14905ef2e7401@google.com/

Weaknesses (CWE)

  • CWE-120 — Buffer Copy without Checking Size of Input

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HCISA-ADP
CVSS 3.1CRITICAL 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected c5cc0d23c5414d23438c5024890e367cc5a0e645 < f312367f5246e04df564d341044286e9e37a97ba ; affected c5d2177a72a1659554922728fc407f59950aa929 < 7499859881488da97589f3c79cc66fa75748ad49 ; affected c5d2177a72a1659554922728fc407f59950aa929 < 5b4a79ba65a1ab479903fff2e604865d229b70a9 ; affected 0580e47c8895a4d61ee095f086cba1ded7ca5e7f ; affected 5.15.3 < 5.15.95 ; affected 5.14.19 < 5.15
Linux · Linuxaffected 5.16 ; unaffected 0 < 5.16 ; unaffected 5.15.95 ≤ 5.15.* ; unaffected 6.1.13 ≤ 6.1.* ; unaffected 6.2 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD