{"id":"CVE-2024-38662","aliases":["CVE-2024-38662"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Allow delete from sockmap/sockhash only if update is allowed","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Allow delete from sockmap/sockhash only if update is allowed\n\nWe have seen an influx of syzkaller reports where a BPF program attached to\na tracepoint triggers a locking rule violation by performing a map_delete\non a sockmap/sockhash.\n\nWe don't intend to support this artificial use scenario. Extend the\nexisting verifier allowed-program-type check for updating sockmap/sockhash\nto also cover deleting from a map.\n\nFrom now on only BPF programs which were previously allowed to update\nsockmap/sockhash can delete from these map types.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Allow delete from sockmap/sockhash only if update is allowed\n\nWe have seen an influx of syzkaller reports where a BPF program attached to\na tracepoint triggers a locking rule violation by performing a map_delete\non a sockmap/sockhash.\n\nWe don't intend to support this artificial use scenario. Extend the\nexisting verifier allowed-program-type check for updating sockmap/sockhash\nto also cover deleting from a map.\n\nFrom now on only BPF programs which were previously allowed to update\nsockmap/sockhash can delete from these map types.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: bpf: permitir la eliminación de sockmap/sockhash solo si se permite la actualización. Hemos visto una afluencia de informes de syzkaller donde un programa BPF adjunto a un punto de seguimiento desencadena una violación de la regla de bloqueo al realizar un map_delete en un mapa de calcetines/sockhash. No pretendemos apoyar este escenario de uso artificial. Amplíe la verificación de tipo de programa permitido del verificador existente para actualizar sockmap/sockhash para cubrir también la eliminación de un mapa. De ahora en adelante, sólo los programas BPF a los que anteriormente se les permitía actualizar sockmap/sockhash pueden eliminar de estos tipos de mapas.","source":"nvd"}],"published":"2024-06-21T11:15:12.202Z","modified":"2026-10-15T01:18:32.737Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"dd54b48db0c822ae7b520bc80751f0a0a173ef75","fixed":"29467edc23818dc5a33042ffb4920b49b090e63d","status":"affected"},{"type":"git","introduced":"d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec","fixed":"11e8ecc5b86037fec43d07b1c162e233e131b1d9","status":"affected"},{"type":"git","introduced":"a44770fed86515eedb5a7c00b787f847ebb134a5","fixed":"6693b172f008846811f48a099f33effc26068e1e","status":"affected"},{"type":"git","introduced":"668b3074aa14829e2ac2759799537a93b60fef86","fixed":"000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1","status":"affected"},{"type":"git","introduced":"ff91059932401894e6c86341915615c5eb0eca48","fixed":"b81e1c5a3c70398cf76631ede63a03616ed1ba3c","status":"affected"},{"type":"git","introduced":"ff91059932401894e6c86341915615c5eb0eca48","fixed":"98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d","status":"affected"},{"type":"git","version":"f7990498b05ac41f7d6a190dc0418ef1d21bf058","status":"affected"},{"type":"git","version":"6af057ccdd8e7619960aca1f0428339f213b31cd","status":"affected"},{"type":"semver","introduced":"5.10.215","fixed":"5.10.219","status":"affected"},{"type":"semver","introduced":"5.15.154","fixed":"5.15.161","status":"affected"},{"type":"semver","introduced":"6.1.85","fixed":"6.1.93","status":"affected"},{"type":"semver","introduced":"6.6.26","fixed":"6.6.33","status":"affected"},{"type":"semver","introduced":"5.4.274","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"6.8.5","fixed":"6.9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"5.10.219","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.161","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.93","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.33","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.4","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10","fixed":"5.10.219"},{"status":"affected","introduced":"5.15","fixed":"5.15.161"},{"status":"affected","introduced":"6.1","fixed":"6.1.93"},{"status":"affected","introduced":"6.6","fixed":"6.6.33"},{"status":"affected","introduced":"6.9","fixed":"6.9.4"},{"status":"affected","version":"6.10.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/29467edc23818dc5a33042ffb4920b49b090e63d","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/11e8ecc5b86037fec43d07b1c162e233e131b1d9","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6693b172f008846811f48a099f33effc26068e1e","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b81e1c5a3c70398cf76631ede63a03616ed1ba3c","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-613116.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-21T13:43:09.177Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38662","url":"https://www.cve.org/CVERecord?id=CVE-2024-38662","licence":"CVE Terms of Use","modified":"2026-10-15T00:43:52.945Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38662","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38662","licence":"Public domain","modified":"2026-10-15T01:18:32.737Z"}],"updatedAt":"2026-11-25T22:58:42.125Z","epss":{"score":0.0022,"percentile":0.13286,"date":"2026-12-01T12:00:22.000Z"}}