Use-After-Free Vulnerability in Linux Kernel's eth_skb_pkt_type Function

linux Updated 02 Oct 2025

Summary

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

CVE-2025-21867: In the Linux kernel, the following vulnerability has been resolved: bpf, test_run: Fix use-after-free issue in eth_skb_pkt_type() KMSAN reported a use-after-free issue in eth_skb_pkt_type()[1]. Affects linux versions < 6.1.133-1. Fixed in 6.1.133-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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interactions. It is known for its robustness and flexibility, supporting a wide range of hardware architectures. However, like any complex software, it is susceptible to vulnerabilities that can compromise system integrity and security. This specific vulnerability affects the networking stack, particularly in the handling of Ethernet packets, which is critical for network communication.

Vulnerability Detail

In the Linux kernel, a use-after-free vulnerability was identified in the eth_skb_pkt_type function. This issue arises when the function accesses socket buffer (skb) data that does not contain a valid Ethernet header. The problem is triggered when an invalid user_data argument is passed to the bpf_prog_test_run_xdp function, leading to potential exploitation. If exploited, this vulnerability could allow an attacker to execute arbitrary code or crash the system, posing significant security risks.

How To Fix

Minimum fixed version

6.1.133-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. It is best to apply the patch as soon as it becomes available.

Conclusion

The use-after-free vulnerability in the Linux kernel's eth_skb_pkt_type function poses significant security risks, particularly for network operations. It is crucial for users to update their systems to the patched version as soon as it becomes available to mitigate potential threats. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

A use-after-free vulnerability occurs when a program continues to use a memory reference after it has been freed, potentially leading to arbitrary code execution or crashes.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your manifest file.

Exploitation of this vulnerability could allow attackers to execute arbitrary code or crash the system, leading to data breaches or denial of service.

Yes, a patch is available for Debian 13 in version 6.12.17-1. Users of Debian 12 should monitor for updates.

If you cannot apply the patch, ensure that your system is monitored for unusual activity and consider implementing additional security measures until the patch can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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