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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
69f52adb2d534afc41fcc658f155e01f0b322f9e to < 475032fa2bb82ffb592c321885e917e39f47357faffected69f52adb2d534afc41fcc658f155e01f0b322f9e to < adb7577e23a431fc53aa1b6107733c0d751015fbaffected69f52adb2d534afc41fcc658f155e01f0b322f9e to < b70c24827e11fdc71465f9207e974526fb457bb9affected69f52adb2d534afc41fcc658f155e01f0b322f9e to < 3f7c72bc73c4e542fde14cce017549d8a0b61a3caffected69f52adb2d534afc41fcc658f155e01f0b322f9e to < 03695541b3349bc40bf5d6563d44d6147fb20260affected69f52adb2d534afc41fcc658f155e01f0b322f9e to < 6dce43433e0635e7b00346bc937b69ce48ea71bbaffected69f52adb2d534afc41fcc658f155e01f0b322f9e to < ea7936304ed74ab7f965d17f942a173ce91a5ca8affected69f52adb2d534afc41fcc658f155e01f0b322f9e to < 3f978e3f1570155a1327ffa25f60968bc7b9398faffected
Linux Linux
Default version status: affected
2.6.29affected0 to < 2.6.29unaffected5.4.302 to ≤ 5.4.*unaffected5.10.247 to ≤ 5.10.*unaffected5.15.197 to ≤ 5.15.*unaffected6.1.159 to ≤ 6.1.*unaffected6.6.117 to ≤ 6.6.*unaffected6.12.59 to ≤ 6.12.*unaffected6.17.9 to ≤ 6.17.*unaffected6.18 to ≤ *unaffected
References
- 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 ↗