CVE-2022-50772 (GCVE-0-2022-50772)
Vulnerability from cvelistv5 – Published: 2025-12-24 13:06 – Updated: 2026-05-11 19:25
VLAI
EPSS
VEX
Title
netdevsim: fix memory leak in nsim_bus_dev_new()
Summary
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
Severity
No CVSS data available.
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
40e4fe4ce115c409c3e2fbb247085103ef1cc755 , < 77579e4065295071fbd9662f03430dca5b50b086
(git)
Affected: 40e4fe4ce115c409c3e2fbb247085103ef1cc755 , < cf2010aa1c739bab067cbc90b690d28eaa0b47da (git) |
|
| Linux | Linux |
Affected:
5.2
Unaffected: 0 , < 5.2 (semver) Unaffected: 6.0.7 , ≤ 6.0.* (semver) Unaffected: 6.1 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/net/netdevsim/bus.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "77579e4065295071fbd9662f03430dca5b50b086",
"status": "affected",
"version": "40e4fe4ce115c409c3e2fbb247085103ef1cc755",
"versionType": "git"
},
{
"lessThan": "cf2010aa1c739bab067cbc90b690d28eaa0b47da",
"status": "affected",
"version": "40e4fe4ce115c409c3e2fbb247085103ef1cc755",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/net/netdevsim/bus.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.2"
},
{
"lessThan": "5.2",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.0.*",
"status": "unaffected",
"version": "6.0.7",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.1",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.0.7",
"versionStartIncluding": "5.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1",
"versionStartIncluding": "5.2",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetdevsim: fix memory leak in nsim_bus_dev_new()\n\nIf device_register() failed in nsim_bus_dev_new(), the value of reference\nin nsim_bus_dev-\u003edev is 1. obj-\u003ename in nsim_bus_dev-\u003edev will not be\nreleased.\n\nunreferenced object 0xffff88810352c480 (size 16):\n comm \"echo\", pid 5691, jiffies 4294945921 (age 133.270s)\n hex dump (first 16 bytes):\n 6e 65 74 64 65 76 73 69 6d 31 00 00 00 00 00 00 netdevsim1......\n backtrace:\n [\u003c000000005e2e5e26\u003e] __kmalloc_node_track_caller+0x3a/0xb0\n [\u003c0000000094ca4fc8\u003e] kvasprintf+0xc3/0x160\n [\u003c00000000aad09bcc\u003e] kvasprintf_const+0x55/0x180\n [\u003c000000009bac868d\u003e] kobject_set_name_vargs+0x56/0x150\n [\u003c000000007c1a5d70\u003e] dev_set_name+0xbb/0xf0\n [\u003c00000000ad0d126b\u003e] device_add+0x1f8/0x1cb0\n [\u003c00000000c222ae24\u003e] new_device_store+0x3b6/0x5e0\n [\u003c0000000043593421\u003e] bus_attr_store+0x72/0xa0\n [\u003c00000000cbb1833a\u003e] sysfs_kf_write+0x106/0x160\n [\u003c00000000d0dedb8a\u003e] kernfs_fop_write_iter+0x3a8/0x5a0\n [\u003c00000000770b66e2\u003e] vfs_write+0x8f0/0xc80\n [\u003c0000000078bb39be\u003e] ksys_write+0x106/0x210\n [\u003c00000000005e55a4\u003e] do_syscall_64+0x35/0x80\n [\u003c00000000eaa40bbc\u003e] entry_SYSCALL_64_after_hwframe+0x46/0xb0"
}
],
"providerMetadata": {
"dateUpdated": "2026-05-11T19:25:14.704Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/77579e4065295071fbd9662f03430dca5b50b086"
},
{
"url": "https://git.kernel.org/stable/c/cf2010aa1c739bab067cbc90b690d28eaa0b47da"
}
],
"title": "netdevsim: fix memory leak in nsim_bus_dev_new()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2022-50772",
"datePublished": "2025-12-24T13:06:01.170Z",
"dateReserved": "2025-12-24T13:02:21.547Z",
"dateUpdated": "2026-05-11T19:25:14.704Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2022-50772",
"date": "2026-11-16",
"epss": "0.00233",
"percentile": "0.1432"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/net/netdevsim/bus.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "77579e4065295071fbd9662f03430dca5b50b086",
"status": "affected",
"version": "40e4fe4ce115c409c3e2fbb247085103ef1cc755",
"versionType": "git"
},
{
"lessThan": "cf2010aa1c739bab067cbc90b690d28eaa0b47da",
"status": "affected",
"version": "40e4fe4ce115c409c3e2fbb247085103ef1cc755",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/net/netdevsim/bus.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.2"
},
{
"lessThan": "5.2",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.0.*",
"status": "unaffected",
"version": "6.0.7",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.1",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetdevsim: fix memory leak in nsim_bus_dev_new()\n\nIf device_register() failed in nsim_bus_dev_new(), the value of reference\nin nsim_bus_dev-\u003edev is 1. obj-\u003ename in nsim_bus_dev-\u003edev will not be\nreleased.\n\nunreferenced object 0xffff88810352c480 (size 16):\n comm \"echo\", pid 5691, jiffies 4294945921 (age 133.270s)\n hex dump (first 16 bytes):\n 6e 65 74 64 65 76 73 69 6d 31 00 00 00 00 00 00 netdevsim1......\n backtrace:\n [\u003c000000005e2e5e26\u003e] __kmalloc_node_track_caller+0x3a/0xb0\n [\u003c0000000094ca4fc8\u003e] kvasprintf+0xc3/0x160\n [\u003c00000000aad09bcc\u003e] kvasprintf_const+0x55/0x180\n [\u003c000000009bac868d\u003e] kobject_set_name_vargs+0x56/0x150\n [\u003c000000007c1a5d70\u003e] dev_set_name+0xbb/0xf0\n [\u003c00000000ad0d126b\u003e] device_add+0x1f8/0x1cb0\n [\u003c00000000c222ae24\u003e] new_device_store+0x3b6/0x5e0\n [\u003c0000000043593421\u003e] bus_attr_store+0x72/0xa0\n [\u003c00000000cbb1833a\u003e] sysfs_kf_write+0x106/0x160\n [\u003c00000000d0dedb8a\u003e] kernfs_fop_write_iter+0x3a8/0x5a0\n [\u003c00000000770b66e2\u003e] vfs_write+0x8f0/0xc80\n [\u003c0000000078bb39be\u003e] ksys_write+0x106/0x210\n [\u003c00000000005e55a4\u003e] do_syscall_64+0x35/0x80\n [\u003c00000000eaa40bbc\u003e] entry_SYSCALL_64_after_hwframe+0x46/0xb0"
},
{
"lang": "es",
"value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnetdevsim: correcci\u00f3n de fuga de memoria en nsim_bus_dev_new()\n\nSi device_register() fall\u00f3 en nsim_bus_dev_new(), el valor de referencia en nsim_bus_dev -\u003e dev es 1. obj -\u003e name en nsim_bus_dev -\u003e dev no ser\u00e1 liberado.\n\nobjeto no referenciado 0xffff88810352c480 (tama\u00f1o 16):\n comm \u2019echo\u2019, pid 5691, jiffies 4294945921 (antig\u00fcedad 133.270s)\n volcado hexadecimal (primeros 16 bytes):\n 6e 65 74 64 65 76 73 69 6d 31 00 00 00 00 00 00 netdevsim1......\n rastreo de pila:\n [[000000005e2e5e26]] __kmalloc_node_track_caller+0x3a/0xb0\n [[0000000094ca4fc8]] kvasprintf+0xc3/0x160\n [[00000000aad09bcc]] kvasprintf_const+0x55/0x180\n [[000000009bac868d]] kobject_set_name_vargs+0x56/0x150\n [[000000007c1a5d70]] dev_set_name+0xbb/0xf0\n [[00000000ad0d126b]] device_add+0x1f8/0x1cb0\n [[00000000c222ae24]] new_device_store+0x3b6/0x5e0\n [[0000000043593421]] bus_attr_store+0x72/0xa0\n [[00000000cbb1833a]] sysfs_kf_write+0x106/0x160\n [[00000000d0dedb8a]] kernfs_fop_write_iter+0x3a8/0x5a0\n [[00000000770b66e2]] vfs_write+0x8f0/0xc80\n [[0000000078bb39be]] ksys_write+0x106/0x210\n [[00000000005e55a4]] do_syscall_64+0x35/0x80\n [[00000000eaa40bbc]] entry_SYSCALL_64_after_hwframe+0x46/0xb0"
}
],
"id": "CVE-2022-50772",
"lastModified": "2026-11-10T12:10:00.177",
"metrics": {},
"published": "2025-12-24T13:16:04.020",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/77579e4065295071fbd9662f03430dca5b50b086"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/cf2010aa1c739bab067cbc90b690d28eaa0b47da"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Deferred"
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-05T10:25:37+00:00",
"cve": "CVE-2022-50772",
"id": "CVE-2022-50772",
"initial_release_date": "2022-01-01T00:00:00+00:00",
"product_status:known_affected": "157",
"product_status:known_not_affected": "43",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: Linux kernel: Denial of Service due to memory leak in netdevsim",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50772.json",
"version": "3"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…