CVE-2024-40903

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-40903
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-40903.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-40903
Downstream
Related
Published
2024-07-12T13:15:13Z
Modified
2025-08-09T20:01:27Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

usb: typec: tcpm: fix use-after-free case in tcpmregistersource_caps

There could be a potential use-after-free case in tcpmregistersourcecaps(). This could happen when: * new (say invalid) source caps are advertised * the existing source caps are unregistered * tcpmregistersourcecaps() returns with an error as usbpowerdeliveryregistercapabilities() fails

This causes port->partnersourcecaps to hold on to the now freed source caps.

Reset port->partnersourcecaps value to NULL after unregistering existing source caps.

References

Affected packages