net: netlink: af_netlink: Prevent empty skb by adding a check on len

Kernel Updated 02 Oct 2025

Summary

27/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002731: net: netlink: af_netlink: Prevent empty skb by adding a check on len. Affects Kernel versions < 4c986072a8c9249b9398c7a18f216dc26a9f0e35. 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 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 an open-source monolithic Unix-like computer operating system kernel. It provides the essential services to enable the execution of programs and manages the system's resources. The netlink subsystem in the kernel allows communication between the kernel and user-space processes. The af_netlink module is responsible for handling netlink sockets. This vulnerability affects the af_netlink module and can lead to the creation of empty skb (socket buffer) without proper checks on the length parameter.

Vulnerability Detail

The vulnerability in the af_netlink module allows for the creation of empty skb without verifying the length parameter. This can lead to various security issues, such as kernel crashes, privilege escalation, or information leaks. An attacker could exploit this vulnerability by sending specially crafted netlink messages to the affected system, causing the skb to be empty and triggering the vulnerability. The impact and attack plausibility of this vulnerability have not been proven yet.

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

There is no known workaround for this vulnerability at the moment.

Conclusion

The vulnerability in the af_netlink module of the Linux Kernel can lead to the creation of empty skb without proper checks on the length parameter. It is recommended to update the Linux Kernel to version v5.15.10 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Linux Kernel is an open-source monolithic Unix-like computer operating system kernel that provides essential services to enable program execution and manages system resources.

The netlink subsystem in the Linux Kernel allows communication between the kernel and user-space processes. It provides a mechanism for various kernel components to exchange information and control messages.

af_netlink is a module in the Linux Kernel responsible for handling netlink sockets. It provides an interface for user-space processes to communicate with the kernel through netlink messages.

The potential consequences of this vulnerability include kernel crashes, privilege escalation, and information leaks. However, the actual impact and attack plausibility have not been proven yet.

To fix this vulnerability, users should update their Linux Kernel to version v5.15.10 or later. This can be done by downloading the updated kernel source code from the official Linux Kernel repository and compiling it according to the system's specifications.

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