Critical Memory Management Vulnerability in Linux Kernel: CVE-2025-21961

linux Updated 02 Oct 2025

Summary

01/04/2025
N/A
No i
Medium
5.5

CVE-2025-21961: In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: fix truesize for mb-xdp-pass case When mb-xdp is set and return is XDP_PASS, packet is converted from xdp_buff to sk_buff with xdp_update_skb... Affects linux versions 6.1.106-1 – 6.9.9-1. No fix is published. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware management, process scheduling, and system calls. It is widely used across various platforms, including servers, desktops, and embedded systems. This vulnerability affects the kernel's handling of network packets, specifically in the context of the bnxt driver, which is responsible for managing Broadcom NetXtreme Ethernet devices. The issue arises when the kernel improperly calculates the truesize of packets, potentially leading to system instability and crashes.

Vulnerability Detail

CVE-2025-21961 is a vulnerability in the Linux kernel's bnxt driver, where the truesize of packets is incorrectly calculated when using the mb-xdp feature with XDP_PASS. This miscalculation occurs because the skb_shared_info structure is wiped before the truesize is determined, leading to potential memory corruption and system crashes. The vulnerability can be exploited by sending specially crafted packets, which may cause the kernel to enter an invalid state, resulting in a crash or unexpected behavior.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, you can avoid using the mb-xdp feature or refrain from using the XDP_PASS return code in your network configurations until the kernel is updated. To reproduce the issue for testing, you can use the following commands:

<Node A> ip link set $interface1 xdp obj xdp_pass.o ip link set $interface1 mtu 9000 up ip a a 10.0.0.1/24 dev $interface1 <Node B> ip link set $interface2 mtu 9000 up ip a a 10.0.0.2/24 dev $interface2 ping 10.0.0.1 -s 65000

Conclusion

CVE-2025-21961 is a critical vulnerability in the Linux kernel that affects the bnxt driver, leading to potential system crashes due to incorrect packet size calculations. It is essential to update to the patched version of the kernel to mitigate this risk. Users can also utilize tools like Vulert for ongoing monitoring of vulnerabilities.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-21961 is a vulnerability in the Linux kernel's bnxt driver that affects packet size calculations, potentially leading to system crashes.

You can use tools like Vulert to check if your application is affected by this vulnerability without needing to access the code directly.

Exploiting this vulnerability can lead to memory corruption, system instability, and crashes, affecting the overall reliability of the system.

You can update your Linux kernel using package management commands specific to your distribution, such as 'sudo apt-get update && sudo apt-get install linux=<version>' for Debian-based systems.

Yes, tools like Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just a manifest file.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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