In the Linux kernel, the following vulnerability has been resolved:
most: core: fix resource leak in mostregisterinterface error paths
The function mostregisterinterface() 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 deviceinitialize() and calling putdevice() on all error paths.
The mostregisterinterface() is expected to call putdevice() on error which frees the resources allocated in the caller. The putdevice() either calls releasemdev() or dim2release(), depending on the caller.
Switch to using deviceadd() instead of deviceregister() to handle the split initialization.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71272.json"
}