# CVE-2022-50255: tracing: Fix reading strings from synthetic events

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-02)
- Published: 2025-09-15T14:02:37.224Z
- Modified: 2026-10-15T22:17:29.357Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

tracing: Fix reading strings from synthetic events

The follow commands caused a crash:

  # cd /sys/kernel/tracing
  # echo 's:open char file[]' > dynamic_events
  # echo 'hist:keys=common_pid:file=filename:onchange($file).trace(open,$file)' > events/syscalls/sys_enter_openat/trigger'
  # echo 1 > events/synthetic/open/enable

BOOM!

The problem is that the synthetic event field "char file[]" will read
the value given to it as a string without any memory checks to make sure
the address is valid. The above example will pass in the user space
address and the sythetic event code will happily call strlen() on it
and then strscpy() where either one will cause an oops when accessing
user space addresses.

Use the helper functions from trace_kprobe and trace_eprobe that can
read strings safely (and actually succeed when the address is from user
space and the memory is mapped in).

Now the above can show:

     packagekitd-1721    [000] ...2.   104.597170: open: file=/usr/lib/rpm/fileattrs/cmake.attr
    in:imjournal-978     [006] ...2.   104.599642: open: file=/var/lib/rsyslog/imjournal.state.tmp
     packagekitd-1721    [000] ...2.   104.626308: open: file=/usr/lib/rpm/fileattrs/debuginfo.attr

(As written by CVE List.)

## Affected

- Linux Linux: from bd82631d7ccdc894af2738e47abcba2cb6e7dea9 before d9c79fbcbdb6cb10c07c85040eaf615180b26c48; from bd82631d7ccdc894af2738e47abcba2cb6e7dea9 before 149198d0b884e4606ed1d29b330c70016d878276; from bd82631d7ccdc894af2738e47abcba2cb6e7dea9 before f8bae1853196b52ede50950387f5b48cf83b9815; from bd82631d7ccdc894af2738e47abcba2cb6e7dea9 before 0934ae9977c27133449b6dd8c6213970e7eece38; 5.10 (not affected: before 5.10; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.10 before 5.15.75; from 5.16 before 5.19.17; from 6.0 before 6.0.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/d9c79fbcbdb6cb10c07c85040eaf615180b26c48> (patch)
- <https://git.kernel.org/stable/c/149198d0b884e4606ed1d29b330c70016d878276> (patch)
- <https://git.kernel.org/stable/c/f8bae1853196b52ede50950387f5b48cf83b9815> (patch)
- <https://git.kernel.org/stable/c/0934ae9977c27133449b6dd8c6213970e7eece38> (patch)

## Sources

- CVE List: [CVE-2022-50255](https://www.cve.org/CVERecord?id=CVE-2022-50255), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2022-50255](https://nvd.nist.gov/vuln/detail/CVE-2022-50255), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2022-50255 · Whole record: https://cve.day/CVE-2022-50255.json · Rebuilt by cve.day 2026-11-25T22:58:21.130Z
