LiveActive security incident?Get immediate response
CVE Record

CVE-2022-50702: vdpa_sim: fix possible memory leak in vdpasim_net_init() and vdpasim_blk_init()

In the Linux kernel, the following vulnerability has been resolved: vdpa_sim: fix possible memory leak in vdpasim_net_init() and vdpasim_blk_init() Inject fault while probing module, if device_register() fails in vdpasim_net_init() or vdpasim_blk_init(), but the refcount of kobject is not decreased to 0, the name allocated in dev_set_name() is leaked. Fix this by calling put_device(), so that name can be freed in callback function kobject_cleanup(). (vdpa_sim_net) unreferenced object 0xffff88807eebc370 (size 16): comm "modprobe", pid 3848, jiffies 4362982860 (age 18.153s) hex dump (first 16 bytes): 76 64 70 61 73 69 6d 5f 6e 65 74 00 6b 6b 6b a5 vdpasim_net.kkk. backtrace: [<ffffffff8174f19e>] __kmalloc_node_track_caller+0x4e/0x150 [<ffffffff81731d53>] kstrdup+0x33/0x60 [<ffffffff83a5d421>] kobject_set_name_vargs+0x41/0x110 [<ffffffff82d87aab>] dev_set_name+0xab/0xe0 [<ffffffff82d91a23>] device_add+0xe3/0x1a80 [<ffffffffa0270013>] 0xffffffffa0270013 [<ffffffff81001c27>] do_one_initcall+0x87/0x2e0 [<ffffffff813739cb>] do_init_module+0x1ab/0x640 [<ffffffff81379d20>] load_module+0x5d00/0x77f0 [<ffffffff8137bc40>] __do_sys_finit_module+0x110/0x1b0 [<ffffffff83c4d505>] do_syscall_64+0x35/0x80 [<ffffffff83e0006a>] entry_SYSCALL_64_after_hwframe+0x46/0xb0 (vdpa_sim_blk) unreferenced object 0xffff8881070c1250 (size 16): comm "modprobe", pid 6844, jiffies 4364069319 (age 17.572s) hex dump (first 16 bytes): 76 64 70 61 73 69 6d 5f 62 6c 6b 00 6b 6b 6b a5 vdpasim_blk.kkk. backtrace: [<ffffffff8174f19e>] __kmalloc_node_track_caller+0x4e/0x150 [<ffffffff81731d53>] kstrdup+0x33/0x60 [<ffffffff83a5d421>] kobject_set_name_vargs+0x41/0x110 [<ffffffff82d87aab>] dev_set_name+0xab/0xe0 [<ffffffff82d91a23>] device_add+0xe3/0x1a80 [<ffffffffa0220013>] 0xffffffffa0220013 [<ffffffff81001c27>] do_one_initcall+0x87/0x2e0 [<ffffffff813739cb>] do_init_module+0x1ab/0x640 [<ffffffff81379d20>] load_module+0x5d00/0x77f0 [<ffffffff8137bc40>] __do_sys_finit_module+0x110/0x1b0 [<ffffffff83c4d505>] do_syscall_64+0x35/0x80 [<ffffffff83e0006a>] entry_SYSCALL_64_after_hwframe+0x46/0xb0

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

CVE-2022-50702 is a Linux kernel memory leak in the vdpa_sim network and block simulation modules. The leak occurs when device registration fails during module probing. Available sources show an upstream kernel fix, but no evidence of active exploitation, public weaponization, or business-impacting incidents.

Executive priority

Treat this as routine kernel hygiene unless vdpa_sim is used in sensitive or high-density environments. Patch through normal Linux kernel maintenance, with attention to virtualization and lab systems that may load the affected modules.

Technical view

The issue is in vdpasim_net_init() and vdpasim_blk_init(). If device_register() fails after dev_set_name() allocates a device name, the kobject reference count is not dropped to zero, leaking that allocation. The fix calls put_device() so kobject cleanup can free the name.

Likely exposure

Exposure is likely limited to Linux systems running affected kernel versions where vdpa_sim_net or vdpa_sim_blk modules are present and used, often virtualization or testing contexts. The source bundle does not identify broad default exposure or remote attack surface.

Exploitation context

The evidence describes a fault-injected module probing failure observed under modprobe. KEV is false, and the supplied sources do not state active exploitation, remote exploitability, privilege escalation, or a public exploit.

Researcher notes

Source data is incomplete for severity scoring: no CVSS, CWE, exploit status, or downstream vendor matrix is supplied. Analysis should focus on code provenance, backport status, and whether affected modules are reachable in local operational workflows.

Mitigation direction

  • Update to a vendor kernel containing the upstream stable fix.
  • Consult Linux distribution advisories for package names and reboot requirements.
  • Track the listed kernel stable commits in fleet patch records.
  • If unsupported, review whether vdpa_sim modules can be disabled safely.
  • Prioritize systems that load vdpa_sim_net or vdpa_sim_blk.

Validation and detection

  • Inventory Linux kernel versions against vendor fixed builds.
  • Check whether vdpa_sim_net or vdpa_sim_blk modules are installed or loaded.
  • Confirm vendor changelogs include the referenced stable commits or backports.
  • Review test and virtualization hosts where vdpa_sim is used.
  • Verify patched hosts have rebooted into the updated kernel.
Prepared
Confidence
medium
Sources
6

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-50702 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
3Timeline events
0ADP providers
5Source links

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxa3c06ae158dd6fa8336157c31d9234689d068d02, a3c06ae158dd6fa8336157c31d9234689d068d02, a3c06ae158dd6fa8336157c31d9234689d068d02, a3c06ae158dd6fa8336157c31d9234689d068d02unaffected
LinuxLinux5.12, 0, 5.15.87, 6.0.19, 6.1.5, 6.2affected
Weakness

CWE details

No CWE listed

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