CVE-2024-43891
published high CVSS 3.1 · 7.8tracing: Have format file honor EVENT_FILE_FL_FREED
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux14aa4f3efc6e784847e8c8543a7ef34ec9bdbb01 to < 4ed03758ddf0b19d69eed69386d65a92d0091e0c · b63db58e2fa5d6963db9c45df88e60060f0ff35f to < 531dc6780d94245af037c25c2371c8caf652f0f9 · b63db58e2fa5d6963db9c45df88e60060f0ff35f to < b1560408692cd0ab0370cfbe9deb03ce97ab3f6d · 6.6.33 to < 6.6.49 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.6.49 through 6.6.* (unaffected · semver) · 6.10.5 through 6.10.* (unaffected · semver) · 6.11 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1020 | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1020 | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1020 | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1020 | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1020 | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1020 | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1017-oracle | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1017-oracle-64k | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1019-gcp | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1019-nvidia | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1019-nvidia-64k | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1020-aws | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1020-azure | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-50-generic-64k | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-50-lowlatency | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-50-lowlatency-64k | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1020-aws | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1020-azure | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-50-lowlatency | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1019 | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1019 | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1017-oracle | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1017-oracle-64k | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1019-gcp | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1019-nvidia | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1019-nvidia-64k | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1020-aws | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1020-azure | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-headers-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-headers-6.8.0-50-generic-64k | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-headers-6.8.0-50-lowlatency | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-headers-6.8.0-50-lowlatency-64k | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-50 | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-50 | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-50 | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-image-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1017-oracle | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1017-oracle-64k | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1019-gcp | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1019-nvidia | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1019-nvidia-64k | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1020-aws | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1020-azure | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-50-generic-64k | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-50-lowlatency | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-50-lowlatency-64k | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-50 | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-50 | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-lib-rust-6.8.0-50-lowlatency | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-tools-6.8.0-50 | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1017-oracle | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1017-oracle-64k | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1019-gcp | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1019-nvidia | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1019-nvidia-64k | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1020-aws | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1020-azure | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-modules-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-modules-6.8.0-50-generic-64k | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-modules-6.8.0-50-lowlatency | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-6.8.0-50-lowlatency-64k | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1017-oracle | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1017-oracle-64k | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1019-gcp | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1019-nvidia | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1020-aws | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1020-azure | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-modules-involflt-6.8.0-1020-azure | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-modules-ipu6-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-modules-iwlwifi-6.8.0-1020-azure | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-modules-iwlwifi-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-modules-iwlwifi-6.8.0-50-lowlatency | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1019-nvidia | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1019-nvidia-64k | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-modules-usbio-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-nvidia-6.8 | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-nvidia-6.8-headers-6.8.0-1019 | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-nvidia-6.8-tools-6.8.0-1019 | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-oracle-6.8 | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-oracle-6.8-headers-6.8.0-1017 | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-oracle-6.8-tools-6.8.0-1017 | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1017-oracle | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1017-oracle-64k | Advisory build | 6.8.0-1017.18~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1019-gcp | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1019-nvidia | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1019-nvidia-64k | Advisory build | 6.8.0-1019.21~22.04.1 | USN-7155-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1020-aws | Advisory build | 6.8.0-1020.22~22.04.1 | USN-7154-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1020-azure | Advisory build | 6.8.0-1020.23~22.04.1 | USN-7196-1 |
| Ubuntu | jammy | linux-tools-6.8.0-50-generic | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-tools-6.8.0-50-generic-64k | Advisory build | 6.8.0-50.51~22.04.1 | USN-7154-2 |
| Ubuntu | jammy | linux-tools-6.8.0-50-lowlatency | Advisory build | 6.8.0-50.51.1~22.04.1 | USN-7154-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: tracing: Have format file honor EVENT_FILE_FL_FREED When eventfs was introduced, special care had to be done to coordinate the freeing of the file meta data with the files that are exposed to user space. The file meta data would have a ref count that is set when the file is created and would be decremented and freed after the last user that opened the file closed it. When the file meta data was to be freed, it would set a flag (EVENT_FILE_FL_FREED) to denote that the file is freed, and any new references made (like new opens or reads) would fail as it is marked freed. This allowed other meta data to be freed after this flag was set (under the event_mutex). All the files that were dynamically created in the events directory had a pointer to the file meta data and would call event_release() when the last reference to the user space file was closed. This would be the time that it is safe to free the file meta data. A shortcut was made for the "format" file. It's i_private would point to the "call" entry directly and not point to the file's meta data. This is because all format files are the same for the same "call", so it was thought there was no reason to differentiate them. The other files maintain state (like the "enable", "trigger", etc). But this meant if the file were to disappear, the "format" file would be unaware of it. This caused a race that could be trigger via the user_events test (that would create dynamic events and free them), and running a loop that would read the user_events format files: In one console run: # cd tools/testing/selftests/user_events # while true; do ./ftrace_test; done And in another console run: # cd /sys/kernel/tracing/ # while true; do cat events/user_events/__test_event/format; done 2>/dev/null With KASAN memory checking, it would trigger a use-after-free bug report (which was a real bug). This was because the format file was not checking the file's meta data flag "EVENT_FILE_FL_FREED", so it would access the event that the file meta data pointed to after the event was freed. After inspection, there are other locations that were found to not check the EVENT_FILE_FL_FREED flag when accessing the trace_event_file. Add a new helper function: event_file_file() that will make sure that the event_mutex is held, and will return NULL if the trace_event_file has the EVENT_FILE_FL_FREED flag set. Have the first reference of the struct file pointer use event_file_file() and check for NULL. Later uses can still use the event_file_data() helper function if the event_mutex is still held and was not released since the event_file_file() call.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable paths are tracefs files under /sys/kernel/tracing/events/ reached by open/read/write/ioctl on a local mount, plus the user_events_data ioctl used to free the event. There is no network or adjacent-network path into the ftrace event layer. AC:L - The attacker controls both sides and no race is required — the format fd holds no reference and i_private is never cleared, so opening the file, deleting the dynamic event via DIAG_IOCSDEL or dynamic_events, then reading yields the use-after-free deterministically. PR:L - Only an unprivileged local account with tracefs access is needed; user_events is explicitly designed for relaxed permissions (the kernel comment cites "'other' has read/write access to user_events_data/status"), and Android/Perfetto, ChromeOS and developer systems routinely grant tracefs to a non-root group. No real root or CAP_SYS_ADMIN is required. UI:N - The attacker performs the event registration, deletion and file read entirely from their own process. No victim action or cooperating user is involved. S:U - The use-after-free happens in kernel context on the same host and does not cross a virtualization, IOMMU or sandbox boundary. Impact stays within the kernel's own security authority. C:H - f_show() prints call->print_fmt, field->type and field->name as %s from the freed trace_event_call and its freed field list, copying reclaimed slab contents directly into the user's read() buffer. Grooming the freed object with attacker-controlled data turns print_fmt into an arbitrary kernel pointer, giving an arbitrary-read disclosure primitive. I:H - The same commit fixes write paths that operated on a freed trace_event_file — apply_event_filter() does rcu_assign_pointer(file->filter, ...) and trigger registration does list_add_rcu(&data->list, &file->triggers) and file->flags |= into freed memory. A UAF write into a reclaimed slab object is a heap-corruption primitive usable for control-flow hijack. A:H - KASAN confirmed a real use-after-free; dereferencing the freed call and walking its freed field list under event_mutex readily oopses the kernel. The condition is trivially repeatable, so it is a reliable denial of service.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 14aa4f3efc6e784847e8c8543a7ef34ec9bdbb01 to < 4ed03758ddf0b19d69eed69386d65a92d0091e0c (affected · git)b63db58e2fa5d6963db9c45df88e60060f0ff35f to < 531dc6780d94245af037c25c2371c8caf652f0f9 (affected · git)b63db58e2fa5d6963db9c45df88e60060f0ff35f to < b1560408692cd0ab0370cfbe9deb03ce97ab3f6d (affected · git)6.6.33 to < 6.6.49 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.6.49 through 6.6.* (unaffected · semver)6.10.5 through 6.10.* (unaffected · semver)6.11 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
2Linux · cna
tracing: Have format file honor EVENT_FILE_FL_FREED
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8b91038d869fcb9c3c428c458a5785d1fbd9d7b6a07a89f6545c492c406e5f96
- Ingested
- 23 Sep 2026, 08:27:16 UTC
- Source record
- Official CVE record