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-1002679: netdevsim: Zero-initialize memory for new map's value in function nsim_bpf_map_alloc. Affects Kernel versions >= 395cacb5f1a0a290f1ae9ca4692c400d2b57a705, < 699e794c12a3cd79045ff135bc87a53b97024e43. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 identified in netdevsim is related to the function nsim_bpf_map_alloc. In this function, memory for a new map's value is not properly zero-initialized. This can lead to uninitialized memory being used, potentially resulting in information disclosure or other security issues. The vulnerability was introduced in version v4.16 of the Linux Kernel and has been fixed in version v5.4.168.

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 is vulnerable to a memory initialization issue in the nsim_bpf_map_alloc function. This vulnerability can potentially lead to information disclosure or other security issues. It is recommended to update the Linux Kernel to version v5.4.168 or later to fix this vulnerability. For further support on vulnerability remediation, you can contact 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 physical hardware.

The vulnerability can potentially lead to information disclosure or other security issues due to the use of uninitialized memory.

To fix this vulnerability, update the Linux Kernel to version v5.4.168 or later, which includes the necessary fix.

No specific workaround has been mentioned for this vulnerability.

You can find more information about this vulnerability in the Open Source Vulnerability Database (OSVDB) or by contacting the Linux Kernel development team.

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