# CVE-2022-50278: PNP: fix name memory leak in pnp\_alloc\_dev()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-15T14:21:15.208Z
- **Modified:** 2026-11-05T20:17:31.800Z

## Who should check

- Anyone running Linux \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< ea77b4b761cd75e5456f677311babfa0418f289a; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< bbcf772216aa237036cc3ae3158288d0a95aaf4d; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 81b024df4755e6bb6993b786584eca6eabbb9791; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< dac87e295cddc8ab316cff14ab2071b5221d84fa; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< c12b314bb23dc0c83e03402cc84574700947e3b2; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 1f50c7497a5f89de0c31f2edf086af41ff834320; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 290dd73b943c95c006df973257076ff163adf4d0; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 110d7b0325c55ff3620073ba4201845f59e22ebf
- Anyone running Linux 2.6.30

## Description

In the Linux kernel, the following vulnerability has been resolved:

PNP: fix name memory leak in pnp\_alloc\_dev()

After commit 1fa5ae857bb1 ("driver core: get rid of struct device's
bus\_id string array"), the name of device is allocated dynamically,
move dev\_set\_name() after pnp\_add\_id() to avoid memory leak.

## Affected and fixed versions

- Linux: \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< ea77b4b761cd75e5456f677311babfa0418f289a; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< bbcf772216aa237036cc3ae3158288d0a95aaf4d; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 81b024df4755e6bb6993b786584eca6eabbb9791; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< dac87e295cddc8ab316cff14ab2071b5221d84fa; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< c12b314bb23dc0c83e03402cc84574700947e3b2; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 1f50c7497a5f89de0c31f2edf086af41ff834320; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 290dd73b943c95c006df973257076ff163adf4d0; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 110d7b0325c55ff3620073ba4201845f59e22ebf (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

- Upgrade Linux to 110d7b0325c55ff3620073ba4201845f59e22ebf or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50278.md
Affected: Linux >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < ea77b4b761cd75e5456f677311babfa0418f289a; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < bbcf772216aa237036cc3ae3158288d0a95aaf4d; >= 1fa5ae857bb14f604620517…
Fixed in: Linux 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa, Linux 81b024df4755e6bb6993b786584eca6eabbb9791, Linux 1f50c7497a5f89de0c31f2edf086af41ff834320, Linux 290dd73b943c95c006df973257076ff163adf4d0, Linux 110d7b0325c55ff3620073ba4201845f59e22ebf

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.
```

## FAQ

### Is CVE-2022-50278 being exploited?

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

### How serious is CVE-2022-50278?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50278?

Linux \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< ea77b4b761cd75e5456f677311babfa0418f289a; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< bbcf772216aa237036cc3ae3158288d0a95aaf4d; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 81b024df4755e6bb6993b786584eca6eabbb9791; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< dac87e295cddc8ab316cff14ab2071b5221d84fa; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< c12b314bb23dc0c83e03402cc84574700947e3b2; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 1f50c7497a5f89de0c31f2edf086af41ff834320; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 290dd73b943c95c006df973257076ff163adf4d0; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 110d7b0325c55ff3620073ba4201845f59e22ebf; Linux 2.6.30.

### Is there a fix for CVE-2022-50278?

Yes. Fixed in Linux 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa, Linux 81b024df4755e6bb6993b786584eca6eabbb9791, Linux 1f50c7497a5f89de0c31f2edf086af41ff834320, Linux 290dd73b943c95c006df973257076ff163adf4d0, Linux 110d7b0325c55ff3620073ba4201845f59e22ebf. Upgrade Linux to 110d7b0325c55ff3620073ba4201845f59e22ebf or later.

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

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.

## References

- patch: <https://git.kernel.org/stable/c/ea77b4b761cd75e5456f677311babfa0418f289a>
- patch: <https://git.kernel.org/stable/c/693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa>
- patch: <https://git.kernel.org/stable/c/bbcf772216aa237036cc3ae3158288d0a95aaf4d>
- patch: <https://git.kernel.org/stable/c/81b024df4755e6bb6993b786584eca6eabbb9791>
- patch: <https://git.kernel.org/stable/c/dac87e295cddc8ab316cff14ab2071b5221d84fa>
- patch: <https://git.kernel.org/stable/c/c12b314bb23dc0c83e03402cc84574700947e3b2>
- patch: <https://git.kernel.org/stable/c/1f50c7497a5f89de0c31f2edf086af41ff834320>
- patch: <https://git.kernel.org/stable/c/290dd73b943c95c006df973257076ff163adf4d0>
- patch: <https://git.kernel.org/stable/c/110d7b0325c55ff3620073ba4201845f59e22ebf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50278>

HTML: <https://flawdb.com/CVE-2022-50278> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50278>
