Kernel Panic Vulnerability in Linux Package: CVE-2025-38165

linux Updated 02 Oct 2025

Summary

03/07/2025
N/A
Yes i
Unrated
Not published

CVE-2025-38165: In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix panic when calling skb_linearize The panic can be reproduced by executing the command: ./bench sockmap -c 2 -p 1 -a --rx-verdict-ingre... Affects linux versions < 6.1.147-1. Fixed in 6.1.147-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 provides essential services such as process management, memory management, and device control. The kernel is critical for system stability and performance. This vulnerability affects the Linux kernel in Debian versions 12 and 13, specifically related to the sockmap functionality, which is used for efficient socket handling.

Vulnerability Detail

CVE-2025-38165 is a vulnerability in the Linux kernel that can lead to a kernel panic when executing specific commands involving the sockmap feature. The panic is triggered by an assertion failure in the skb_linearize function, which occurs due to a race condition introduced by a previous commit. When the RX path uses the strparser module with a large payload, it exceeds the maximum message fragments, leading to the panic. This vulnerability can cause system instability and crashes, affecting the overall reliability of the operating system.

How To Fix

Minimum fixed version

6.1.147-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

As a temporary workaround, avoid using the command that triggers the panic. Specifically, refrain from executing './bench sockmap -c 2 -p 1 -a --rx-verdict-ingress --rx-strp 100000' until the package is updated.

Conclusion

CVE-2025-38165 is a significant vulnerability in the Linux kernel that can lead to kernel panics and system instability. It is crucial for users to update their systems to the latest patched version to mitigate this risk. Additionally, temporary workarounds can help avoid triggering the panic until the update is applied.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-38165 is a vulnerability in the Linux kernel that can cause a kernel panic when certain commands are executed.

This vulnerability can lead to system crashes and instability, affecting the reliability of your operating system.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

As a temporary measure, avoid executing the command that triggers the panic until you can apply the update.

More details about CVE-2025-38165 can be found in the official Linux kernel documentation and security advisories.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.147-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