Use After Free Vulnerability in Linux Kernel's veth Package

linux Updated 02 Oct 2025

Summary

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

CVE-2023-53107: In the Linux kernel, the following vulnerability has been resolved: veth: Fix use after free in XDP_REDIRECT Commit 718a18a0c8a6 ("veth: Rework veth_xdp_rcv_skb in order to accept non-linear skb") introduced a bug where... Affects linux versions < 6.1.25-1. Fixed in 6.1.25-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 a core component of many operating systems, providing essential services for hardware and software interaction. The veth package, part of the Linux kernel, facilitates virtual Ethernet devices, allowing for network communication between containers and the host system. This package is crucial for containerized environments, enabling efficient networking. However, it is susceptible to vulnerabilities that can lead to severe security risks, such as memory corruption and unauthorized access.

Vulnerability Detail

The vulnerability, identified as CVE-2023-53107, arises from a use-after-free condition in the veth package's handling of XDP_REDIRECT. This issue was introduced in commit 718a18a0c8a6, where the code incorrectly attempted to expand the headroom of a socket buffer (skb) using kmalloc. This mistake allows the consume_skb() function to free the skb while it is still in use by AF_XDP, leading to potential memory corruption and exploitation. The bug can be exploited by an attacker to cause system instability or execute arbitrary code, posing a significant risk to systems utilizing the affected kernel versions.

How To Fix

Minimum fixed version

6.1.25-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 is available.

Conclusion

The CVE-2023-53107 vulnerability in the Linux kernel's veth package poses significant risks due to its use-after-free condition. Users are strongly advised to update to the patched version 6.1.25-1 to mitigate these risks. Regular monitoring for vulnerabilities using tools like Vulert can help maintain system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2023-53107 is a use-after-free vulnerability in the Linux kernel's veth package that can lead to memory corruption and potential exploitation.

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

The risks include system instability, memory corruption, and the potential for attackers to execute arbitrary code on affected systems.

You can update your Linux kernel by running the command: sudo apt-get update && sudo apt-get install linux=6.1.25-1 on Debian systems.

Currently, there are no specific workarounds available. The recommended action is to apply the patch as soon as it is released.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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