# CVE-2022-50278: PNP: fix name memory leak in pnp_alloc_dev()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:21:15.208Z
- Modified: 2026-11-05T20:17:31.800Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 1fa5ae857bb14f6046205171d98506d8112dd74e before ea77b4b761cd75e5456f677311babfa0418f289a; from 1fa5ae857bb14f6046205171d98506d8112dd74e before 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa; from 1fa5ae857bb14f6046205171d98506d8112dd74e before bbcf772216aa237036cc3ae3158288d0a95aaf4d; from 1fa5ae857bb14f6046205171d98506d8112dd74e before 81b024df4755e6bb6993b786584eca6eabbb9791; from 1fa5ae857bb14f6046205171d98506d8112dd74e before dac87e295cddc8ab316cff14ab2071b5221d84fa; from 1fa5ae857bb14f6046205171d98506d8112dd74e before c12b314bb23dc0c83e03402cc84574700947e3b2; from 1fa5ae857bb14f6046205171d98506d8112dd74e before 1f50c7497a5f89de0c31f2edf086af41ff834320; from 1fa5ae857bb14f6046205171d98506d8112dd74e before 290dd73b943c95c006df973257076ff163adf4d0; from 1fa5ae857bb14f6046205171d98506d8112dd74e before 110d7b0325c55ff3620073ba4201845f59e22ebf; 2.6.30 (not affected: before 2.6.30; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 2.6.30 before 4.9.337; from 4.10 before 4.14.303; from 4.15 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2022-50278](https://www.cve.org/CVERecord?id=CVE-2022-50278), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50278](https://nvd.nist.gov/vuln/detail/CVE-2022-50278), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50278 · Whole record: https://cve.day/CVE-2022-50278.json · Rebuilt by cve.day 2026-11-25T22:58:21.144Z
