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-1000016: net: fix use-after-free in tw_timer_handler. Affects Kernel versions >= 61a7e26028b94805fd686a6dc9dbd9941f8f19b0, < 5c2fe20ad37ff56070ae0acb34152333976929b4. 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 net package in the Linux Kernel is responsible for handling network-related operations. It provides various functionalities for network communication, including managing timers. The tw_timer_handler function within the net package is responsible for handling timer events related to TCP connections. This vulnerability specifically affects the tw_timer_handler function, leading to a use-after-free issue.

Vulnerability Detail

The use-after-free vulnerability in the tw_timer_handler function can be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition. The vulnerability occurs when the function attempts to access memory that has already been freed. By manipulating the timing of timer events, an attacker can trigger this use-after-free condition and potentially gain control over the system or disrupt network communication.

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 provided in commit 5c2fe20ad37ff56070ae0acb34152333976929b4 manually. However, it is strongly advised to update to the latest version of the Linux Kernel to ensure comprehensive security fixes and avoid potential issues with manual patching.

Conclusion

The use-after-free vulnerability in the tw_timer_handler function of the net package in the Linux Kernel can have serious security implications. It is crucial to update to the latest version of the Linux Kernel to ensure the vulnerability is patched and to benefit from other security enhancements. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can allow an attacker to execute arbitrary code or cause a denial-of-service condition.

By manipulating the timing of timer events, an attacker can trigger the use-after-free condition and potentially gain control over the system or disrupt network communication.

Yes, updating the Linux Kernel to version v4.14.261 or later will fix this vulnerability.

A manual patch can be applied, but it is recommended to update to the latest version of the Linux Kernel for comprehensive security fixes.

You can refer to the vulnerability details in the Open Source Vulnerability format provided by the Cloud Security Alliance's GSD database. The link to the details is available in the references section.

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