LiveActive security incident?Get immediate response
CVE Record

CVE-2022-50772: netdevsim: fix memory leak in nsim_bus_dev_new()

In the Linux kernel, the following vulnerability has been resolved: netdevsim: fix memory leak in nsim_bus_dev_new() If device_register() failed in nsim_bus_dev_new(), the value of reference in nsim_bus_dev->dev is 1. obj->name in nsim_bus_dev->dev will not be released. unreferenced object 0xffff88810352c480 (size 16): comm "echo", pid 5691, jiffies 4294945921 (age 133.270s) hex dump (first 16 bytes): 6e 65 74 64 65 76 73 69 6d 31 00 00 00 00 00 00 netdevsim1...... backtrace: [<000000005e2e5e26>] __kmalloc_node_track_caller+0x3a/0xb0 [<0000000094ca4fc8>] kvasprintf+0xc3/0x160 [<00000000aad09bcc>] kvasprintf_const+0x55/0x180 [<000000009bac868d>] kobject_set_name_vargs+0x56/0x150 [<000000007c1a5d70>] dev_set_name+0xbb/0xf0 [<00000000ad0d126b>] device_add+0x1f8/0x1cb0 [<00000000c222ae24>] new_device_store+0x3b6/0x5e0 [<0000000043593421>] bus_attr_store+0x72/0xa0 [<00000000cbb1833a>] sysfs_kf_write+0x106/0x160 [<00000000d0dedb8a>] kernfs_fop_write_iter+0x3a8/0x5a0 [<00000000770b66e2>] vfs_write+0x8f0/0xc80 [<0000000078bb39be>] ksys_write+0x106/0x210 [<00000000005e55a4>] do_syscall_64+0x35/0x80 [<00000000eaa40bbc>] entry_SYSCALL_64_after_hwframe+0x46/0xb0

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2022-50772 is a Linux kernel memory leak in the netdevsim component. If device registration fails, a device name allocation is not released. The documented impact is resource leakage, not code execution. Business urgency is mainly for Linux systems using affected kernels where netdevsim can be reached or managed.

Executive priority

Treat as a routine-to-moderate Linux kernel maintenance item unless netdevsim is used broadly in your environment. Prioritize patch validation on test infrastructure and privileged multi-user Linux systems. There is no source-backed evidence of active exploitation.

Technical view

The flaw is in nsim_bus_dev_new(). On device_register() failure, nsim_bus_dev->dev retains a reference and obj->name is not freed. The CVE record lists affected Linux kernel ranges including 5.2 through before 6.0.7 and before 6.1, with stable kernel commits provided as fixes.

Likely exposure

Exposure appears limited to Linux systems running affected kernel versions with netdevsim present and usable. The source shows triggering through a sysfs write path. Internet-facing exposure is not indicated by the provided sources.

Exploitation context

No active exploitation is reported in the provided sources, and CISA KEV status is false. The issue appears local or administrative in nature based on the kernel backtrace, but the CVE record does not provide privileges, CVSS, or CWE details.

Researcher notes

Evidence is sparse: severity, CVSS, CWE, and detailed attack prerequisites are absent. The public description identifies a memory leak on an error path in netdevsim device registration, with two stable kernel references. Avoid assuming remote reachability or privilege escalation without additional vendor analysis.

Mitigation direction

  • Update to a Linux kernel containing the referenced stable fixes.
  • Check your Linux distribution for backported fixes for CVE-2022-50772.
  • If patching is delayed, review vendor guidance for disabling or restricting netdevsim.
  • Limit access to kernel device-management interfaces to trusted administrators.

Validation and detection

  • Inventory Linux kernel versions across affected systems.
  • Confirm whether vendor kernels include the referenced stable commits.
  • Identify systems where netdevsim is enabled, loaded, or used for testing.
  • Prioritize validation on development, CI, and network-testing hosts.
  • Monitor vendor advisories for corrected affected-version statements.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2022-50772 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux40e4fe4ce115c409c3e2fbb247085103ef1cc755, 40e4fe4ce115c409c3e2fbb247085103ef1cc755unaffected
LinuxLinux5.2, 0, 6.0.7, 6.1affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.