Description
In the Linux kernel, the following vulnerability has been resolved: usb: typec: tcpci_rt1711h: unregister TCPCI port with devres rt1711h_probe() registers the TCPCI port before requesting the interrupt and enabling alert interrupts. If either of those later steps fails, the probe function returns without unregistering the TCPCI port. The explicit unregister currently only happens from the remove callback. Register a devres action immediately after tcpci_register_port() succeeds, so tcpci_unregister_port() runs on later probe failures and on driver detach. Drop the remove callback to avoid unregistering the same port twice. This issue was identified during our ongoing static-analysis research while reviewing kernel code.
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
302c570bf36e997d55ad0d60628a2feec76954a4 to < ce2e36e8759dfbfe546723810c306f42f484866daffected302c570bf36e997d55ad0d60628a2feec76954a4 to < 94b1abf1af94aa5a355e9f03675e07bccfc41c4baffected302c570bf36e997d55ad0d60628a2feec76954a4 to < e5406c8fb71cd2f89a46300a746f6e7972e621e8affected302c570bf36e997d55ad0d60628a2feec76954a4 to < 569f18a83eed0b0be4615f0c7bed40fb5c50e2e6affected302c570bf36e997d55ad0d60628a2feec76954a4 to < e8da46d99d3710106e7c44db14566bf9b57386b5affected4309ab96ab744703871e35d829177dd9347bf643affected895ec8c86e13f85b119c71d5f95491b48867955eaffected745dcedb896a740825160228f98dbb5725a49f85affected4.19.131 to < 4.20affected5.4.50 to < 5.5affected5.7.7 to < 5.8affected
Linux Linux
Default version status: affected
5.8affected0 to < 5.8unaffected6.6.145 to ≤ 6.6.*unaffected6.12.96 to ≤ 6.12.*unaffected6.18.39 to ≤ 6.18.*unaffected7.1.4 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/ce2e36e8759dfbfe546723810c306f42f484866d ↗
- https://git.kernel.org/stable/c/94b1abf1af94aa5a355e9f03675e07bccfc41c4b ↗
- https://git.kernel.org/stable/c/e5406c8fb71cd2f89a46300a746f6e7972e621e8 ↗
- https://git.kernel.org/stable/c/569f18a83eed0b0be4615f0c7bed40fb5c50e2e6 ↗
- https://git.kernel.org/stable/c/e8da46d99d3710106e7c44db14566bf9b57386b5 ↗