Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-43891— tracing: Have format file honor EVENT_FILE_FL_FREED

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于在使用format文件时未能正确处理EVENT_FILE_FL_FREED标志。

CVSS 7.8 · High EPSS 0.24% · P14

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 9

VendorProduct Version RangeStatus
Linux Linux 14aa4f3efc6e784847e8c8543a7ef34ec9bdbb01< 4ed03758ddf0b19d69eed69386d65a92d0091e0c affected
b63db58e2fa5d6963db9c45df88e60060f0ff35f< 531dc6780d94245af037c25c2371c8caf652f0f9 affected
b63db58e2fa5d6963db9c45df88e60060f0ff35f< b1560408692cd0ab0370cfbe9deb03ce97ab3f6d affected
6.6.33< 6.6.49 affected
6.9 affected
< 6.9 unaffected
6.6.49≤ 6.6.* unaffected
6.10.5≤ 6.10.* unaffected
… +1 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-43891

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
tracing: Have format file honor EVENT_FILE_FL_FREED
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于在使用format文件时未能正确处理EVENT_FILE_FL_FREED标志。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 14aa4f3efc6e784847e8c8543a7ef34ec9bdbb01 ~ 4ed03758ddf0b19d69eed69386d65a92d0091e0c -
Linux Linux 6.9 -

II. Public POCs for CVE-2024-43891

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-43891

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-43891 (1)

Other References for CVE-2024-43891 (2)

Same Patch Batch · Linux · 2024-08-26 · 39 CVEs total

CVE-2024-43897 7.8 HIGH net: drop bad gso csum_start and offset in virtio_net_hdr
CVE-2024-43910 7.8 HIGH bpf: add missing check_func_arg_reg_off() to prevent out-of-bounds memory accesses
CVE-2024-44934 7.8 HIGH net: bridge: mcast: wait for previous gc cycles when removing port
CVE-2024-43892 7.8 HIGH memcg: protect concurrent access to mem_cgroup_idr
CVE-2024-44939 7.8 HIGH jfs: fix null ptr deref in dtInsertEntry
CVE-2024-43888 7.8 HIGH mm: list_lru: fix UAF for memory cgroup
CVE-2024-44941 7.8 HIGH f2fs: fix to cover read extent cache access with lock
CVE-2024-44942 7.8 HIGH f2fs: fix to do sanity check on F2FS_INLINE_DATA flag in inode during GC
CVE-2024-44940 7.5 HIGH fou: remove warn in gue_gro_receive on unsupported protocol
CVE-2024-44933 7.3 HIGH bnxt_en : Fix memory out-of-bounds in bnxt_fill_hw_rss_tbl()
CVE-2024-43913 7.0 HIGH nvme: apple: fix device reference counting
CVE-2024-44938 jfs: Fix shift-out-of-bounds in dbDiscardAG
CVE-2024-44937 platform/x86: intel-vbtn: Protect ACPI notify handler against recursion
CVE-2024-44936 power: supply: rt5033: Bring back i2c_set_clientdata
CVE-2024-43908 drm/amdgpu: Fix the null pointer dereference to ras_manager
CVE-2024-44935 sctp: Fix null-ptr-deref in reuseport_add_sock().
CVE-2024-44932 idpf: fix UAFs when destroying the queues
CVE-2024-44931 gpio: prevent potential speculation leaks in gpio_device_get_desc()
CVE-2024-43914 md/raid5: avoid BUG_ON() while continue reshape after reassembling
CVE-2024-43912 wifi: nl80211: disallow setting special AP channel widths

Showing top 20 of 39 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-43891

No comments yet


Leave a comment