# LoongArch: Fix panic caused by NULL-PMD in huge_pte_offset()

CVE record · `CVE-2025-38195`

- **Identifiers:** `CVE-2025-38195`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 4 Jul 2025
- **Updated:** 30 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 4 Jul 2025, 13:37 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `34256805720993e37adf6127371a1265aea8376a to before 55a9a7d21309bbea1dd629cf28396521a2803bb3` (git)
  - affected: `2ca9380b12711afe95b3589bd82b59623b3c96b3 to before b427d98d55217b53c88643579fbbd8a4c351a105` (git)
  - affected: `51424fd171cee6a33f01f7c66b8eb23ac42289d4 to before 985f086f281b7bbb6644851e63af1a17ffff9277` (git)
  - affected: `bd51834d1cf65a2c801295d230c220aeebf87a73 to before b5c7397b7fd125203c60b59860c168ee92291272` (git)
  - affected: `bd51834d1cf65a2c801295d230c220aeebf87a73 to before ee084fa96123ede8b0563a1b5a9b23adc43cd50d` (git)
  - affected: `b49f085cd671addbda4802d6b9382513f7dd0f30` (git)
  - affected: `6.1.136 to before 6.1.191` (semver)
  - affected: `6.6.89 to before 6.6.95` (semver)
  - affected: `6.12.26 to before 6.12.35` (semver)
  - affected: `6.14.5 to before 6.15` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.15`
  - unaffected: `before 6.15` (semver)
  - unaffected: `6.1.191 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.95 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.35 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.4 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel can panic in the LoongArch huge_pte_offset() function when it dereferences a NULL PMD, as seen in a madvise system call path. The source gives few details on who can trigger it. Upgrade to 6.1.191, 6.6.95, 6.12.35, 6.15.4 or a later release in the matching series.

Written 13 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0018, the 8th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 4 Jul 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2025-38195](https://www.cve.org/CVERecord?id=CVE-2025-38195)
- [NVD: CVE-2025-38195](https://nvd.nist.gov/vuln/detail/CVE-2025-38195)

### References from the CNA

- <https://git.kernel.org/stable/c/55a9a7d21309bbea1dd629cf28396521a2803bb3>
- <https://git.kernel.org/stable/c/b427d98d55217b53c88643579fbbd8a4c351a105>
- <https://git.kernel.org/stable/c/985f086f281b7bbb6644851e63af1a17ffff9277>
- <https://git.kernel.org/stable/c/b5c7397b7fd125203c60b59860c168ee92291272>
- <https://git.kernel.org/stable/c/ee084fa96123ede8b0563a1b5a9b23adc43cd50d>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-38195>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-38195/>. Everything for agents: <https://agentprime.io/llms.txt>.
