Kernel Vulnerability in Linux Packages: LoongArch PMD Handling Issue

linux Updated 02 Oct 2025

Summary

08/05/2025
N/A
Yes i
Unrated
Not published

CVE-2025-37818: In the Linux kernel, the following vulnerability has been resolved: LoongArch: Return NULL from huge_pte_offset() for invalid PMD LoongArch's huge_pte_offset() currently returns a pointer to a PMD slot even if the underl... Affects linux versions < 6.1.137-1. Fixed in 6.1.137-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It is widely used across various distributions, including Debian 11, 12, and 13. This vulnerability specifically affects the LoongArch architecture, where the handling of page table entries can lead to system instability.

Vulnerability Detail

In the Linux kernel, the huge_pte_offset() function for the LoongArch architecture incorrectly returns a pointer to a PMD slot even when the entry points to an invalid_pte_table. This misbehavior can cause functions like smaps_hugetlb_range() to fetch invalid entry values, leading to kernel crashes when the system misinterprets these addresses as valid swap entries. The root cause lies in the failure to check the PMD entry's validity before returning a pointer, which can result in severe system crashes.

How To Fix

Minimum fixed version

6.1.137-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch as soon as it becomes available.

Conclusion

CVE-2025-37818 is a significant vulnerability in the Linux kernel affecting the LoongArch architecture, which can lead to system crashes due to improper handling of page table entries. Users are strongly encouraged to update their systems to the latest patched version to mitigate the risks associated with this vulnerability.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-37818 is a vulnerability in the Linux kernel affecting the LoongArch architecture, where the huge_pte_offset() function can return invalid pointers, leading to potential kernel crashes.

If your system uses the LoongArch architecture and is running an affected version of the Linux kernel, it may experience crashes or instability due to misinterpretation of page table entries.

Yes, a patch is being developed and users are advised to update their Linux packages to the latest version that includes the fix for CVE-2025-37818.

You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing a manifest file like package-lock.json. Visit Vulert Scanner to check your application without needing to sign up.

While there are no specific workarounds available, it is crucial to monitor your system for any unusual behavior and apply the patch as soon as it is released.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.137-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback