{"id":"CVE-2025-71272","aliases":["CVE-2025-71272"],"related":[],"kind":"vulnerability","state":"published","title":"most: core: fix resource leak in most_register_interface error paths","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmost: core: fix resource leak in most_register_interface error paths\n\nThe function most_register_interface() did not correctly release resources\nif it failed early (before registering the device). In these cases, it\nreturned an error code immediately, leaking the memory allocated for the\ninterface.\n\nFix this by initializing the device early via device_initialize() and\ncalling put_device() on all error paths.\n\nThe most_register_interface() is expected to call put_device() on\nerror which frees the resources allocated in the caller. The\nput_device() either calls release_mdev() or dim2_release(),\ndepending on the caller.\n\nSwitch to using device_add() instead of device_register() to handle\nthe split initialization.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmost: core: fix resource leak in most_register_interface error paths\n\nThe function most_register_interface() did not correctly release resources\nif it failed early (before registering the device). In these cases, it\nreturned an error code immediately, leaking the memory allocated for the\ninterface.\n\nFix this by initializing the device early via device_initialize() and\ncalling put_device() on all error paths.\n\nThe most_register_interface() is expected to call put_device() on\nerror which frees the resources allocated in the caller. The\nput_device() either calls release_mdev() or dim2_release(),\ndepending on the caller.\n\nSwitch to using device_add() instead of device_register() to handle\nthe split initialization.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmost: core: corregir fuga de recursos en las rutas de error de most_register_interface\n\nLa función most_register_interface() no liberaba correctamente los recursos si fallaba prematuramente (antes de registrar el dispositivo). En estos casos, devolvía un código de error inmediatamente, fugando la memoria asignada para la interfaz.\n\nSolucionar esto mediante la inicialización temprana del dispositivo a través de device_initialize() y llamando a put_device() en todas las rutas de error.\n\nSe espera que most_register_interface() llame a put_device() en caso de error, lo que libera los recursos asignados en el llamador. put_device() llama a release_mdev() o a dim2_release(), dependiendo del llamador.\n\nCambiar a usar device_add() en lugar de device_register() para manejar la inicialización dividida.","source":"nvd"}],"published":"2026-05-06T11:27:05.998Z","modified":"2026-10-21T13:18:25.973Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"723de0f9171eeb49a3ae98cae82ebbbb992b3a7c","fixed":"82f42a13e3d7a07a950ee4fa2d4c74843a3e7ace","status":"affected"},{"type":"git","introduced":"723de0f9171eeb49a3ae98cae82ebbbb992b3a7c","fixed":"a49028a796d7b94f8e3ab9bd34b18f36be235459","status":"affected"},{"type":"git","introduced":"723de0f9171eeb49a3ae98cae82ebbbb992b3a7c","fixed":"af0b99b2214a10554adb5b868240d23af6e64e71","status":"affected"},{"type":"git","introduced":"723de0f9171eeb49a3ae98cae82ebbbb992b3a7c","fixed":"2f483f3817fb0e4209ac5de928778b1da0cc8574","status":"affected"},{"type":"git","introduced":"723de0f9171eeb49a3ae98cae82ebbbb992b3a7c","fixed":"1f4c9d8a1021281750c6cda126d6f8a40cc24e71","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.6","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.6","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/82f42a13e3d7a07a950ee4fa2d4c74843a3e7ace","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a49028a796d7b94f8e3ab9bd34b18f36be235459","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af0b99b2214a10554adb5b868240d23af6e64e71","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f483f3817fb0e4209ac5de928778b1da0cc8574","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f4c9d8a1021281750c6cda126d6f8a40cc24e71","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71272","url":"https://www.cve.org/CVERecord?id=CVE-2025-71272","licence":"CVE Terms of Use","modified":"2026-10-21T12:38:39.259Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71272","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71272","licence":"Public domain","modified":"2026-10-21T13:18:25.973Z"}],"updatedAt":"2026-11-25T22:59:12.137Z","epss":{"score":0.00162,"percentile":0.02891,"date":"2026-11-30T12:00:22.000Z"}}