netfilter: nf_queue: fix possible use-after-free in Kernel

Kernel Updated 02 Oct 2025

Summary

18/03/2022
N/A
No i
Unrated
Not published

GSD-2022-1000899: netfilter: nf_queue: fix possible use-after-free. Affects Kernel versions >= 271b72c7fa82c2c7a795bc16896149933110672d, < 34dc4a6a7f261736ef7183868a5bddad31c7f9e3. 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 Kernel is a crucial component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The nf_queue module in the Kernel is responsible for queuing network packets for further processing by user-space applications. However, a vulnerability has been discovered in the nf_queue module that could lead to a use-after-free scenario.

Vulnerability Detail

The vulnerability in the nf_queue module arises from a use-after-free bug. This bug occurs when a network packet is queued for processing, but the memory associated with the packet is freed before it is actually processed. An attacker could potentially exploit this vulnerability by manipulating the timing of packet processing, leading to a use-after-free condition. This could result in a variety of security issues, including remote code execution, denial of service, or information disclosure.

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 disable the nf_queue module if it is not required for their specific use case. Disabling the module eliminates the risk associated with the use-after-free vulnerability. However, this workaround may impact the functionality of certain applications that rely on the nf_queue module for packet processing. To disable the nf_queue module, users can modify the Kernel configuration and rebuild the Kernel without including the nf_queue module.

Conclusion

The nf_queue module in the Linux Kernel is vulnerable to a use-after-free bug, which can be exploited to achieve various security risks. It is recommended to update the Kernel to version v4.19.233 or later to mitigate this vulnerability. Users can also consider disabling the nf_queue module if it is not necessary for their use case. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The nf_queue module in the Kernel is responsible for queuing network packets for further processing by user-space applications. It allows applications to intercept and modify network packets before they are forwarded by the Kernel.

An attacker can exploit this vulnerability by manipulating the timing of packet processing, causing a use-after-free condition. This can lead to various security issues, including remote code execution, denial of service, or information disclosure.

The vulnerability was introduced in version v2.6.29 of the Linux Kernel by commit 271b72c7fa82c2c7a795bc16896149933110672d. It is present in all versions between v2.6.29 and v4.19.232 (inclusive). The vulnerability is fixed in version v4.19.233 and later.

Yes, users can disable the nf_queue module if it is not required for their specific use case. Disabling the module eliminates the risk associated with the use-after-free vulnerability. However, this may impact the functionality of certain applications that rely on the nf_queue module for packet processing.

To update the Linux Kernel, users can follow the official documentation provided by their Linux distribution. The process typically involves downloading the latest Kernel source code, configuring the Kernel options, compiling the Kernel, and installing the updated Kernel image.

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