Skip to content
Heist/ feed
Back to feed
UnratedFix available

bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem() bpf_map_lookup_percpu_elem() helper is also available for sleepable bpf program. When BPF JIT is disabled or under 32-bit host, bpf_map_lookup_percpu_elem() will not be inlined. Using it in a sleepable bpf program will trigger the warning in bpf_map_lookup_percpu_elem(), because the bpf program only holds rcu_read_lock_trace lock. Therefore, add the missed check.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.142, 6.12.35, 6.15.4, 6.6.95
CVEs
CVE-2025-38202
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:36 UTC · Revision 1

Source evidence

bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem()

core-osv · Original source

Published 4 Jul 2025, 13:37 UTC

In the Linux kernel, the following vulnerability has been resolved: bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem() bpf_map_lookup_percpu_elem() helper is also available for sleepable bpf program. When BPF JIT is disabled or under 32-bit host, bpf_map_lookup_percpu_elem() will not be inlined. Using it in a sleepable bpf program will trigger the warning in bpf_map_lookup_percpu_elem(), because the bpf program only holds rcu_read_lock_trace lock. Therefore, add the missed check.

osv:CVE-2025-38202

Kernel

Fixed versions: 6.1.142, 6.6.95, 6.12.35, 6.15.4

Complete source record
{
  "id": "fff205d76be94c7a3d5f98c078ca7536c3d2beaa1d96cb725b1cc848a25eb529",
  "url": "https://osv.dev/vulnerability/CVE-2025-38202",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem() bpf_map_lookup_percpu_elem() helper is also available for sleepable bpf program. When BPF JIT is disabled or under 32-bit host, bpf_map_lookup_percpu_elem() will not be inlined. Using it in a sleepable bpf program will trigger the warning in bpf_map_lookup_percpu_elem(), because the bpf program only holds rcu_read_lock_trace lock. Therefore, add the missed check.",
    "evidence": "osv:CVE-2025-38202",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.142",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.95",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.35",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.15.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-38202",
      "aliases": [
        "CVE-2025-38202"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "07343110b293456d30393e89b86c4dee1ac051c8"
                },
                {
                  "fixed": "2f8c69a72e8ad87b36b8052f789da3cc2b2e186c"
                },
                {
                  "fixed": "7bf4461f1c97207fda757014690d55a447ce859f"
                },
                {
                  "fixed": "2d834477bbc1e8b8a59ff8b0c081529d6bed7b22"
                },
                {
                  "fixed": "b522d4d334f206284b1a44b0b0b2f99fd443b39b"
                },
                {
                  "fixed": "d4965578267e2e81f67c86e2608481e77e9c8569"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38202.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.19.0"
                },
                {
                  "fixed": "6.1.142"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.95"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.35"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.15.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38202.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.809385382Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2d834477bbc1e8b8a59ff8b0c081529d6bed7b22",
        "https://git.kernel.org/stable/c/2f8c69a72e8ad87b36b8052f789da3cc2b2e186c",
        "https://git.kernel.org/stable/c/7bf4461f1c97207fda757014690d55a447ce859f",
        "https://git.kernel.org/stable/c/b522d4d334f206284b1a44b0b0b2f99fd443b39b",
        "https://git.kernel.org/stable/c/d4965578267e2e81f67c86e2608481e77e9c8569",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38202.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38202",
        "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/2025/38xxx/CVE-2025-38202.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38202",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 497428,
  "published_at": "2025-07-04T13:37:23.347+00:00"
}