isdn: mISDN: hfcsusb: fix memory leak in hfcsusb_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 69f52adb2d534afc41fcc658f155e01f0b322f9e · < 6dce43433e0635e7b00346bc937b69ce48ea71bb| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's hfcsusb_probe() leaks memory allocated for ctrl_urb if setup_instance() fails. The input does not establish how an attacker could trigger this failure or whether access or user interaction is required. The fix was compile-tested only.
Engineers running Linux kernels with the mISDN hfcsusb driver should check their deployments; affected versions were not specified.