Use-after-free vulnerability in net: tw_timer_handler

Kernel Updated 02 Oct 2025

Summary

10/01/2022
N/A
No i
Unrated
Not published

GSD-2022-1000013: net: fix use-after-free in tw_timer_handler. Affects Kernel versions >= 61a7e26028b94805fd686a6dc9dbd9941f8f19b0, < e73164e89d1be561228a4534e1091369ee4ba41a. 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 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 net package is a crucial component of the Linux Kernel, responsible for handling network-related operations. It provides various functionalities, including network protocols, socket management, and packet processing. The tw_timer_handler function within the net package is responsible for managing TCP time-wait timers. These timers are used to ensure that all packets related to a closed TCP connection are received and processed before the connection is fully closed. However, a use-after-free vulnerability has been discovered in the tw_timer_handler function, which can lead to potential security risks.

Vulnerability Detail

The use-after-free vulnerability in the tw_timer_handler function allows an attacker to exploit a freed memory region. By manipulating the timing of certain network events, an attacker can trigger the use of the freed memory, leading to a variety of potential consequences. These consequences may include arbitrary code execution, privilege escalation, or denial of service. The vulnerability was introduced in version v2.6.27 of the Linux Kernel and has been fixed in version v4.9.296.

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, users can apply the patch manually to their existing kernel version. The patch can be obtained from the official Linux Kernel repository and applied using standard patching techniques. However, it is strongly advised to update to the latest stable version of the Linux Kernel to ensure comprehensive vulnerability mitigation.

Conclusion

The use-after-free vulnerability in the tw_timer_handler function of the net package in the Linux Kernel can have severe security implications. It is recommended to update the kernel to version v4.9.296 or later to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The use-after-free vulnerability in the tw_timer_handler function can potentially allow an attacker to execute arbitrary code, escalate privileges, or cause denial of service.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze and alert you in real-time if the vulnerability is present.

At the time of this report, there are no known public exploits targeting this specific vulnerability. However, it is always recommended to apply security patches promptly to mitigate potential risks.

Yes, this vulnerability can be exploited remotely. An attacker can send specially crafted network packets to trigger the use-after-free condition in the tw_timer_handler function.

It is strongly advised to update the Linux Kernel to version v4.9.296 or later to fix this vulnerability. Additionally, regularly applying security updates and patches is crucial to maintain a secure system.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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