coresight: perf: Retrieve path and source from event data
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.53
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: coresight: perf: Retrieve path and source from event data ETM perf callbacks currently use the per-CPU csdev_src pointer, which can race with updates during device registration and unregistration. The AUX setup already builds and stores the path in the event data. Use this path to retrieve the source instead of csdev_src to avoid the race. Export coresight_get_source() and add etm_event_get_ctxt_path() to retrieve the context's path and its source with READ_ONCE() / WRITE_ONCE() accessors. Give the comments to explain why this approach is safe when pause or resume callbacks preempt the disable callback (e.g. via NMI).
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 0bcbf2e30ff2271b54f54c8697a185f7d86ec6e4 · fixed in 0f4cb08f30011b7625a4fba668fa5c36da5e6637; From 0bcbf2e30ff2271b54f54c8697a185f7d86ec6e4 · fixed in f37bc31447c0ddafedb25e3c4a4f4e2284034247
- Linux Linux
4.6
- KernelLinux
From 4.6.0 · fixed in 6.18.53