CVE-2025-68734: isdn: mISDN: hfcsusb: fix memory leak in hfcsusb_probe()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
isdn: mISDN: hfcsusb: fix memory leak in hfcsusb_probe()
In hfcsusb_probe(), the memory allocated for ctrl_urb gets leaked when setup_instance() fails with an error code. Fix that by freeing the urb before freeing the hw structure. Also change the error paths to use the goto ladder style.
Compile tested only. Issue found using a prototype static analysis tool.
The Linux kernel CVE team has assigned CVE-2025-68734 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.29 with commit 69f52adb2d534afc41fcc658f155e01f0b322f9e and fixed in 5.4.302 with commit 475032fa2bb82ffb592c321885e917e39f47357f Issue introduced in 2.6.29 with commit 69f52adb2d534afc41fcc658f155e01f0b322f9e and fixed in 5.10.247 with commit adb7577e23a431fc53aa1b6107733c0d751015fb Issue introduced in 2.6.29 with commit 69f52adb2d534afc41fcc658f155e01f0b322f9e and fixed in 5.15.197 with commit b70c24827e11fdc71465f9207e974526fb457bb9 Issue introduced in 2.6.29 with commit 69f52adb2d534afc41fcc658f155e01f0b322f9e and fixed in 6.1.159 with commit 3f7c72bc73c4e542fde14cce017549d8a0b61a3c Issue introduced in 2.6.29 with commit 69f52adb2d534afc41fcc658f155e01f0b322f9e and fixed in 6.6.117 with commit 03695541b3349bc40bf5d6563d44d6147fb20260 Issue introduced in 2.6.29 with commit 69f52adb2d534afc41fcc658f155e01f0b322f9e and fixed in 6.12.59 with commit 6dce43433e0635e7b00346bc937b69ce48ea71bb Issue introduced in 2.6.29 with commit 69f52adb2d534afc41fcc658f155e01f0b322f9e and fixed in 6.17.9 with commit ea7936304ed74ab7f965d17f942a173ce91a5ca8 Issue introduced in 2.6.29 with commit 69f52adb2d534afc41fcc658f155e01f0b322f9e and fixed in 6.18 with commit 3f978e3f1570155a1327ffa25f60968bc7b9398f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-68734
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/isdn/hardware/mISDN/hfcsusb.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/475032fa2bb82ffb592c321885e917e39f47357f https://git.kernel.org/stable/c/adb7577e23a431fc53aa1b6107733c0d751015fb https://git.kernel.org/stable/c/b70c24827e11fdc71465f9207e974526fb457bb9 https://git.kernel.org/stable/c/3f7c72bc73c4e542fde14cce017549d8a0b61a3c https://git.kernel.org/stable/c/03695541b3349bc40bf5d6563d44d6147fb20260 https://git.kernel.org/stable/c/6dce43433e0635e7b00346bc937b69ce48ea71bb https://git.kernel.org/stable/c/ea7936304ed74ab7f965d17f942a173ce91a5ca8 https://git.kernel.org/stable/c/3f978e3f1570155a1327ffa25f60968bc7b9398f