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

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1000623: net: fix information leakage in /proc/net/ptype. Affects Kernel versions >= 2feb27dbe00cbb4f7d31f90acf6bd0d751dd0a50, < 839ec7039513a4f84bfbaff953a9393471176bee. 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 Your last release was probably never penetration tested 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 the core component of the Linux operating system, responsible for managing system resources and providing an interface for applications to interact with the hardware. It includes various subsystems, such as networking, file systems, and process management. The /proc/net/ptype file is a virtual file that provides information about the packet types registered in the kernel. It is accessible to all users and can be read to obtain details about the registered packet types.

Vulnerability Detail

The vulnerability in /proc/net/ptype allows unauthorized users to access sensitive information. By reading the file, an attacker can gather information about the registered packet types, potentially revealing details about the system's network configuration and protocols. This information leakage can aid in further attacks, such as network reconnaissance or targeted exploits. The vulnerability was introduced in Linux Kernel version 2.6.26 and has been fixed in version 5.16.5.

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 the file's permissions to only allow access by privileged users (e.g., root), the risk of information leakage can be mitigated. This can be achieved by executing the following command:

chmod 600 /proc/net/ptype

However, it is important to note that this workaround only limits access to the file and does not address the underlying vulnerability. Updating the kernel to the fixed version is still recommended.

Conclusion

The information leakage vulnerability in /proc/net/ptype in the Linux Kernel can allow unauthorized users to access sensitive information about registered packet types. It is recommended to update the kernel to version 5.16.5 or later to fix this vulnerability. Restricting access to the file through permissions can provide a temporary workaround, but updating the kernel is still necessary. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability allows unauthorized users to access sensitive information about the registered packet types in the Linux Kernel. This information can be leveraged for further attacks, such as network reconnaissance or targeted exploits.

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, and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, the vulnerability has been fixed in Linux Kernel version 5.16.5. It is recommended to update the kernel to this version or a later one to mitigate the vulnerability.

Yes, you can restrict access to the /proc/net/ptype file by modifying its permissions. Setting the file's permissions to only allow access by privileged users (e.g., root) can help mitigate the risk of information leakage. However, updating the kernel to the fixed version is still recommended.

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