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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-43892— memcg: protect concurrent access to mem_cgroup_idr

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存在安全漏洞,该漏洞源于在访问mem_cgroup_idr时未保护并发访问,导致潜在的竞争条件。

CVSS 7.8 · High EPSS 0.25% · P15

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 18

VendorProduct Version RangeStatus
Linux Linux 73f576c04b9410ed19660f74f97521bee6e1c546< 912736a0435ef40e6a4ae78197ccb5553cb80b05 affected
73f576c04b9410ed19660f74f97521bee6e1c546< e6cc9ff2ac0b5df9f25eb790934c3104f6710278 affected
73f576c04b9410ed19660f74f97521bee6e1c546< 56fd70f4aa8b82199dbe7e99366b1fd7a04d86fb affected
73f576c04b9410ed19660f74f97521bee6e1c546< 37a060b64ae83b76600d187d76591ce488ab836b affected
73f576c04b9410ed19660f74f97521bee6e1c546< 51c0b1bb7541f8893ec1accba59eb04361a70946 affected
73f576c04b9410ed19660f74f97521bee6e1c546< 9972605a238339b85bd16b084eed5f18414d22db affected
8627c7750a66a46d56d3564e1e881aa53764497c affected
db70cd18d3da727a3a59694de428a9e41c620de7 affected
… +10 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-43892

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
memcg: protect concurrent access to mem_cgroup_idr
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: memcg: protect concurrent access to mem_cgroup_idr Commit 73f576c04b94 ("mm: memcontrol: fix cgroup creation failure after many small jobs") decoupled the memcg IDs from the CSS ID space to fix the cgroup creation failures. It introduced IDR to maintain the memcg ID space. The IDR depends on external synchronization mechanisms for modifications. For the mem_cgroup_idr, the idr_alloc() and idr_replace() happen within css callback and thus are protected through cgroup_mutex from concurrent modifications. However idr_remove() for mem_cgroup_idr was not protected against concurrency and can be run concurrently for different memcgs when they hit their refcnt to zero. Fix that. We have been seeing list_lru based kernel crashes at a low frequency in our fleet for a long time. These crashes were in different part of list_lru code including list_lru_add(), list_lru_del() and reparenting code. Upon further inspection, it looked like for a given object (dentry and inode), the super_block's list_lru didn't have list_lru_one for the memcg of that object. The initial suspicions were either the object is not allocated through kmem_cache_alloc_lru() or somehow memcg_list_lru_alloc() failed to allocate list_lru_one() for a memcg but returned success. No evidence were found for these cases. Looking more deeply, we started seeing situations where valid memcg's id is not present in mem_cgroup_idr and in some cases multiple valid memcgs have same id and mem_cgroup_idr is pointing to one of them. So, the most reasonable explanation is that these situations can happen due to race between multiple idr_remove() calls or race between idr_alloc()/idr_replace() and idr_remove(). These races are causing multiple memcgs to acquire the same ID and then offlining of one of them would cleanup list_lrus on the system for all of them. Later access from other memcgs to the list_lru cause crashes due to missing list_lru_one.
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存在安全漏洞,该漏洞源于在访问mem_cgroup_idr时未保护并发访问,导致潜在的竞争条件。
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 73f576c04b9410ed19660f74f97521bee6e1c546 ~ 912736a0435ef40e6a4ae78197ccb5553cb80b05 -
Linux Linux 4.7 -

II. Public POCs for CVE-2024-43892

# 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-43892

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

Patches & Fixes for CVE-2024-43892 (3)

Other References for CVE-2024-43892 (3)

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-43891 7.8 HIGH tracing: Have format file honor EVENT_FILE_FL_FREED
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-43892

No comments yet


Leave a comment