Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: HID: hidpp: fix potential UAF in hidpp_connect_event() If input_register_device() fails, we call input_free_device(), but keep stale pointer to the old device in hidpp->input, which could potentially lead to UAF. Fix that by resetting it to NULL before returning from hidpp_connect_event().
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected c39e3d5fc9dd3e16c6f59dd94d827540040de66d before e03fd646adad7f97fa4429ec5f38cee9bde5276e; affected c39e3d5fc9dd3e16c6f59dd94d827540040de66d before 5d7637f4d050d105177217e64b869f56f9825060; affected c39e3d5fc9dd3e16c6f59dd94d827540040de66d before 3b8b2e58b078cd30e121401535541bb8a6d57133; affected c39e3d5fc9dd3e16c6f59dd94d827540040de66d before 3303398cc2aa255ba251650a30024e11d48ea6c3; affected c39e3d5fc9dd3e16c6f59dd94d827540040de66d before 6df6b1f2c49678211f65647c300bc51dda02893b |
| Linux / Linux | affected 3.19; unaffected 0 before 3.19; unaffected 6.1.189 through 6.1.*; unaffected 6.6.158 through 6.6.*; unaffected 6.12.111 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/e03fd646adad7f97fa4429ec5f38cee9bde5276e
- https://git.kernel.org/stable/c/5d7637f4d050d105177217e64b869f56f9825060
- https://git.kernel.org/stable/c/3b8b2e58b078cd30e121401535541bb8a6d57133
- https://git.kernel.org/stable/c/3303398cc2aa255ba251650a30024e11d48ea6c3
- https://git.kernel.org/stable/c/6df6b1f2c49678211f65647c300bc51dda02893b