# CVE-2025-71272: most: core: fix resource leak in most_register_interface error paths

- 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-06T11:27:05.998Z
- Modified: 2026-10-21T13:18:25.973Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

most: core: fix resource leak in most_register_interface error paths

The function most_register_interface() did not correctly release resources
if it failed early (before registering the device). In these cases, it
returned an error code immediately, leaking the memory allocated for the
interface.

Fix this by initializing the device early via device_initialize() and
calling put_device() on all error paths.

The most_register_interface() is expected to call put_device() on
error which frees the resources allocated in the caller. The
put_device() either calls release_mdev() or dim2_release(),
depending on the caller.

Switch to using device_add() instead of device_register() to handle
the split initialization.

(As written by CVE List.)

## Affected

- Linux Linux: from 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c before 82f42a13e3d7a07a950ee4fa2d4c74843a3e7ace; from 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c before a49028a796d7b94f8e3ab9bd34b18f36be235459; from 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c before af0b99b2214a10554adb5b868240d23af6e64e71; from 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c before 2f483f3817fb0e4209ac5de928778b1da0cc8574; from 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c before 1f4c9d8a1021281750c6cda126d6f8a40cc24e71; 5.6 (not affected: before 5.6; from 6.6.160 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.16 up to 6.18.*; from 6.19.6 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.6 before 6.12.75; from 6.13 before 6.18.16; from 6.19 before 6.19.6

## References

- <https://git.kernel.org/stable/c/82f42a13e3d7a07a950ee4fa2d4c74843a3e7ace>
- <https://git.kernel.org/stable/c/a49028a796d7b94f8e3ab9bd34b18f36be235459> (patch)
- <https://git.kernel.org/stable/c/af0b99b2214a10554adb5b868240d23af6e64e71> (patch)
- <https://git.kernel.org/stable/c/2f483f3817fb0e4209ac5de928778b1da0cc8574> (patch)
- <https://git.kernel.org/stable/c/1f4c9d8a1021281750c6cda126d6f8a40cc24e71> (patch)

## Sources

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

---

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