Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-50772

UNSCOREDEPSS 11%

netdevsim: fix memory leak in nsim_bus_dev_new()

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < 77579e4065295071fbd9662f03430dca5b50b086; >= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < cf2010aa1c739bab067cbc90b690d28eaa0b47da
  • Anyone running Linux 5.2

Vulnerability facts

Affected
Linux >= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < 77579e4065295071fbd9662f03430dca5b50b086; >= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < cf2010aa1c739bab067cbc90b690d28eaa0b47da; Linux 5.2
Fixed in
Linux 77579e4065295071fbd9662f03430dca5b50b086
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
EPSS
0.26% chance of exploitation in 30 days (percentile 11, 2026-11-26)
Published
Modified

Description

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

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < 77579e4065295071fbd9662f03430dca5b50b086; >= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < cf2010aa1c739bab067cbc90b690d28eaa0b47da—cvelist
Linux5.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-50772. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50772.md
Affected: Linux >= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < 77579e4065295071fbd9662f03430dca5b50b086; >= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < cf2010aa1c739bab067cbc90b690d28eaa0b47da; Linux 5.2
Fixed in: Linux 77579e4065295071fbd9662f03430dca5b50b086

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-50772 being exploited?

There is no confirmed exploitation: CVE-2022-50772 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-50772?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2022-50772?

Linux >= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < 77579e4065295071fbd9662f03430dca5b50b086; >= 40e4fe4ce115c409c3e2fbb247085103ef1cc755, < cf2010aa1c739bab067cbc90b690d28eaa0b47da; Linux 5.2.

Is there a fix for CVE-2022-50772?

Yes. Fixed in Linux 77579e4065295071fbd9662f03430dca5b50b086. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2022-50772?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors