Information Leakage in /proc/net/ptype in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1000196: net: fix information leakage in /proc/net/ptype. Affects Kernel versions >= 2feb27dbe00cbb4f7d31f90acf6bd0d751dd0a50, < db044d97460ea792110eb8b971e82569ded536c6. 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 Linux Kernel is the core component of the Linux operating system. It provides essential functionality and interfaces for various hardware devices, software components, and system processes. One of its features is the /proc file system, which provides a virtual file system that allows access to kernel and process information. The /proc/net/ptype file specifically provides information about packet types registered in the kernel.

However, a vulnerability has been discovered in the /proc/net/ptype file, which can lead to information leakage. This vulnerability allows an attacker to access sensitive information about registered packet types, potentially exposing network-related details and compromising system security.

Vulnerability Detail

The vulnerability in /proc/net/ptype arises from a lack of proper access control and information sanitization. By accessing the file, an attacker can obtain details about registered packet types, including their names and associated information. This information can be leveraged to gain insights into the network infrastructure and potentially launch further attacks.

The impact of this vulnerability depends on the specific use case and the sensitivity of the exposed information. However, it can potentially aid in reconnaissance, network mapping, and targeted attacks against the affected system.

The vulnerability was introduced in Linux Kernel version 2.6.26 and is fixed in version 5.10.96 by commit db044d97460ea792110eb8b971e82569ded536c6.

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 restrict access to the /proc/net/ptype file by modifying the file permissions. By setting appropriate access permissions, such as restricting read access to privileged users only, the risk of information leakage can be mitigated. Here is an example command to modify the permissions:

chmod 600 /proc/net/ptype

However, it is important to note that this workaround may impact legitimate system operations that rely on access to the /proc/net/ptype file. Therefore, it is recommended to apply the official fix or consult with system administrators or security experts for the most appropriate solution.

Conclusion

The information leakage vulnerability in /proc/net/ptype in the Linux Kernel can expose sensitive network-related information and potentially compromise system security. It is crucial to update the kernel to version 5.10.96 or later to mitigate this vulnerability. Alternatively, users can apply the recommended workaround of restricting access to the /proc/net/ptype file. Regularly monitoring for security updates and promptly applying them is essential to maintain system security.

For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the specific use case and the sensitivity of the exposed information. However, it can potentially aid in reconnaissance, network mapping, and targeted attacks against the affected system.

To fix this vulnerability, it is recommended to update the Linux Kernel to version 5.10.96 or later. This can be done by obtaining the updated kernel source code and compiling it for the target system. Alternatively, users can check for official kernel updates provided by their Linux distribution and apply them accordingly.

Yes, as a workaround, users can restrict access to the /proc/net/ptype file by modifying the file permissions. By setting appropriate access permissions, such as restricting read access to privileged users only, the risk of information leakage can be mitigated. However, it is recommended to apply the official fix or consult with system administrators or security experts for the most appropriate solution.

This vulnerability was introduced in Linux Kernel version 2.6.26 and is fixed in version 5.10.96 or later.

Yes, you can find more details about this vulnerability, including the specific commits that introduced and fixed it, in the references provided.

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