# CVE-2026-46221: EDAC/versalnet: Fix device name memory leak

- 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.16%, higher than 3% of CVEs (2026-11-30)
- Published: 2026-05-28T09:40:36.679Z
- Modified: 2026-06-17T10:53:21.560Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

EDAC/versalnet: Fix device name memory leak

The device name allocated via kzalloc() in init_one_mc() is assigned to
dev->init_name but never freed on the normal removal path.  device_register()
copies init_name and then sets dev->init_name to NULL, so the name pointer
becomes unreachable from the device. Thus leaking memory.

Use a stack-local char array instead of using kzalloc() for name.

(As written by CVE List.)

## Affected

- Linux Linux: from d5fe2fec6c40dda03df8cc9b4a97de0b7e39f984 before 24d2912962d087ebff7c4984f8ac34a5f23c8dbf; from d5fe2fec6c40dda03df8cc9b4a97de0b7e39f984 before b16033c8774f5fb4c0cb9b445a1dfc68f499ae6a; from d5fe2fec6c40dda03df8cc9b4a97de0b7e39f984 before 8cf5dd235eff6008cb04c3d8064d2acfa90616f1; 6.18 (not affected: before 6.18; from 6.18.32 up to 6.18.*; from 7.0.9 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.18 before 6.18.32; from 6.19 before 7.0.9; 7.1

## References

- <https://git.kernel.org/stable/c/24d2912962d087ebff7c4984f8ac34a5f23c8dbf> (patch)
- <https://git.kernel.org/stable/c/b16033c8774f5fb4c0cb9b445a1dfc68f499ae6a> (patch)
- <https://git.kernel.org/stable/c/8cf5dd235eff6008cb04c3d8064d2acfa90616f1> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-46221 · Whole record: https://cve.day/CVE-2026-46221.json · Rebuilt by cve.day 2026-11-25T22:59:22.884Z
