Skip to content
Heist/ feed
Back to feed
UnratedFix available

bpf: Allow delete from sockmap/sockhash only if update is allowed

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: bpf: Allow delete from sockmap/sockhash only if update is allowed We have seen an influx of syzkaller reports where a BPF program attached to a tracepoint triggers a locking rule violation by performing a map_delete on a sockmap/sockhash. We don't intend to support this artificial use scenario. Extend the existing verifier allowed-program-type check for updating sockmap/sockhash to also cover deleting from a map. From now on only BPF programs which were previously allowed to update sockmap/sockhash can delete from these map types.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.9.4
CVEs
CVE-2024-38662
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 05:25 UTC · Revision 1

Source evidence

bpf: Allow delete from sockmap/sockhash only if update is allowed

core-osv · Original source

Published 21 Jun 2024, 11:15 UTC

In the Linux kernel, the following vulnerability has been resolved: bpf: Allow delete from sockmap/sockhash only if update is allowed We have seen an influx of syzkaller reports where a BPF program attached to a tracepoint triggers a locking rule violation by performing a map_delete on a sockmap/sockhash. We don't intend to support this artificial use scenario. Extend the existing verifier allowed-program-type check for updating sockmap/sockhash to also cover deleting from a map. From now on only BPF programs which were previously allowed to update sockmap/sockhash can delete from these map types.

osv:CVE-2024-38662

Kernel

Fixed versions: 5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.9.4

Complete source record
{
  "id": "4eab5070ca27e50ef6c388ca8baaec3d35016a2c9dc13c31e8536ce1d342fc11",
  "url": "https://osv.dev/vulnerability/CVE-2024-38662",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "bpf: Allow delete from sockmap/sockhash only if update is allowed",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: bpf: Allow delete from sockmap/sockhash only if update is allowed We have seen an influx of syzkaller reports where a BPF program attached to a tracepoint triggers a locking rule violation by performing a map_delete on a sockmap/sockhash. We don't intend to support this artificial use scenario. Extend the existing verifier allowed-program-type check for updating sockmap/sockhash to also cover deleting from a map. From now on only BPF programs which were previously allowed to update sockmap/sockhash can delete from these map types.",
    "evidence": "osv:CVE-2024-38662",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.219",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.161",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.93",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.33",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.9.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-38662",
      "aliases": [
        "CVE-2024-38662"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "dd54b48db0c822ae7b520bc80751f0a0a173ef75"
                },
                {
                  "fixed": "29467edc23818dc5a33042ffb4920b49b090e63d"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec"
                },
                {
                  "fixed": "11e8ecc5b86037fec43d07b1c162e233e131b1d9"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a44770fed86515eedb5a7c00b787f847ebb134a5"
                },
                {
                  "fixed": "6693b172f008846811f48a099f33effc26068e1e"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "668b3074aa14829e2ac2759799537a93b60fef86"
                },
                {
                  "fixed": "000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ff91059932401894e6c86341915615c5eb0eca48"
                },
                {
                  "fixed": "b81e1c5a3c70398cf76631ede63a03616ed1ba3c"
                },
                {
                  "fixed": "98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.10.215"
                },
                {
                  "fixed": "5.10.219"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.15.154"
                },
                {
                  "fixed": "5.15.161"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.1.85"
                },
                {
                  "fixed": "6.1.93"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.6.26"
                },
                {
                  "fixed": "6.6.33"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.4.274"
                },
                {
                  "fixed": "5.5"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.8.5"
                },
                {
                  "fixed": "6.9"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f7990498b05ac41f7d6a190dc0418ef1d21bf058"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6af057ccdd8e7619960aca1f0428339f213b31cd"
                }
              ]
            }
          ],
          "versions": [
            "v5.10.218",
            "v5.10.217",
            "v5.10.216",
            "v5.10.215",
            "v5.15.160",
            "v5.15.159",
            "v5.15.158",
            "v5.15.157",
            "v5.15.156",
            "v5.15.155",
            "v5.15.154",
            "v6.1.92",
            "v6.1.91",
            "v6.1.90",
            "v6.1.89",
            "v6.1.88",
            "v6.1.87",
            "v6.1.86",
            "v6.1.85",
            "v6.6.32",
            "v6.6.31",
            "v6.6.30",
            "v6.6.29",
            "v6.6.28",
            "v6.6.27",
            "v6.6.26",
            "v5.4.302",
            "v5.4.301",
            "v5.4.300",
            "v5.4.299",
            "v5.4.298",
            "v5.4.297",
            "v5.4.296",
            "v5.4.295",
            "v5.4.294",
            "v5.4.293",
            "v5.4.292",
            "v5.4.291",
            "v5.4.290",
            "v5.4.289",
            "v5.4.288",
            "v5.4.287",
            "v5.4.286",
            "v5.4.285",
            "v5.4.284",
            "v5.4.283",
            "v5.4.282",
            "v5.4.281",
            "v5.4.280",
            "v5.4.279",
            "v5.4.278",
            "v5.4.277",
            "v5.4.276",
            "v5.4.275",
            "v5.4.274",
            "v6.8.12",
            "v6.8.11",
            "v6.8.10",
            "v6.8.9",
            "v6.8.8",
            "v6.8.7",
            "v6.8.6",
            "v6.8.5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38662.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.10.219"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.161"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.93"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.33"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.9.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38662.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.170657182Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-613116.html",
        "https://git.kernel.org/stable/c/000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1",
        "https://git.kernel.org/stable/c/11e8ecc5b86037fec43d07b1c162e233e131b1d9",
        "https://git.kernel.org/stable/c/29467edc23818dc5a33042ffb4920b49b090e63d",
        "https://git.kernel.org/stable/c/6693b172f008846811f48a099f33effc26068e1e",
        "https://git.kernel.org/stable/c/98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d",
        "https://git.kernel.org/stable/c/b81e1c5a3c70398cf76631ede63a03616ed1ba3c",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38662.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-38662",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38662.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-38662",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 510692,
  "published_at": "2024-06-21T11:15:12.202+00:00"
}