netdevsim: Zero-initialize memory for new map's value in function nsim_bpf_map_alloc

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1002752: netdevsim: Zero-initialize memory for new map's value in function nsim_bpf_map_alloc. Affects Kernel versions >= 395cacb5f1a0a290f1ae9ca4692c400d2b57a705, < 27358aa81a7d60e6bd36f0bb1db65cd084c2cad0. 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 netdevsim package is a part of the Linux Kernel ecosystem. It provides a network device simulator that allows testing and development of network-related features without the need for physical hardware. The package includes various functionalities and components for simulating network devices and their behavior.

Vulnerability Detail

The vulnerability in netdevsim arises from the improper initialization of memory for a new map's value in the function nsim_bpf_map_alloc. This issue was introduced in version v4.16 of the Linux Kernel and was fixed in version v5.15.11. The vulnerability could potentially be exploited by an attacker to manipulate or access uninitialized memory, leading to information disclosure or arbitrary code execution.

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 specific workaround mentioned for this vulnerability.

Conclusion

The netdevsim package in the Linux Kernel was found to have a vulnerability that could allow unauthorized access to uninitialized memory. It is recommended to update the Linux Kernel to version v5.15.11 or later to fix this issue. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

Netdevsim is a network device simulator included in the Linux Kernel ecosystem. It allows testing and development of network-related features without the need for physical hardware.

The vulnerability could potentially allow an attacker to manipulate or access uninitialized memory, leading to information disclosure or arbitrary code execution.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.11 or later, which includes the necessary fix.

No specific workaround has been mentioned for this vulnerability.

For more information about this vulnerability, you can refer to the source link provided in the database_specific section of the vulnerability details.

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