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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-35853— mlxsw: spectrum_acl_tcam: Fix memory leak during rehash

AI Predicted 5.5 Difficulty: Moderate EPSS 0.73% · P51

Possible ATT&CK Techniques 1AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 16

VendorProductVersion RangeStatus
LinuxLinux843500518509128a935edab96bd8efef7c54669e< c6f3fa7f5a748bf6e5c4eb742686d6952f854e76affected
843500518509128a935edab96bd8efef7c54669e< 617e98ba4c50f4547c9eb0946b1cfc26937d70d1affected
843500518509128a935edab96bd8efef7c54669e< 413a01886c3958d4b8aac23a3bff3d430b92093eaffected
843500518509128a935edab96bd8efef7c54669e< b822644fd90992ee362c5e0c8d2556efc8856c76affected
843500518509128a935edab96bd8efef7c54669e< 0ae8ff7b6d42e33943af462910bdcfa2ec0cb8cfaffected
843500518509128a935edab96bd8efef7c54669e< b3fd51f684a0711504f82de510da109ae639722daffected
843500518509128a935edab96bd8efef7c54669e< 8ca3f7a7b61393804c46f170743c3b839df13977affected
5.1affected
… +8 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-35853

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
mlxsw: spectrum_acl_tcam: Fix memory leak during rehash
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_acl_tcam: Fix memory leak during rehash The rehash delayed work migrates filters from one region to another. This is done by iterating over all chunks (all the filters with the same priority) in the region and in each chunk iterating over all the filters. If the migration fails, the code tries to migrate the filters back to the old region. However, the rollback itself can also fail in which case another migration will be erroneously performed. Besides the fact that this ping pong is not a very good idea, it also creates a problem. Each virtual chunk references two chunks: The currently used one ('vchunk->chunk') and a backup ('vchunk->chunk2'). During migration the first holds the chunk we want to migrate filters to and the second holds the chunk we are migrating filters from. The code currently assumes - but does not verify - that the backup chunk does not exist (NULL) if the currently used chunk does not reference the target region. This assumption breaks when we are trying to rollback a rollback, resulting in the backup chunk being overwritten and leaked [1]. Fix by not rolling back a failed rollback and add a warning to avoid future cases. [1] WARNING: CPU: 5 PID: 1063 at lib/parman.c:291 parman_destroy+0x17/0x20 Modules linked in: CPU: 5 PID: 1063 Comm: kworker/5:11 Tainted: G W 6.9.0-rc2-custom-00784-gc6a05c468a0b #14 Hardware name: Mellanox Technologies Ltd. MSN3700/VMOD0005, BIOS 5.11 01/06/2019 Workqueue: mlxsw_core mlxsw_sp_acl_tcam_vregion_rehash_work RIP: 0010:parman_destroy+0x17/0x20 [...] Call Trace: <TASK> mlxsw_sp_acl_atcam_region_fini+0x19/0x60 mlxsw_sp_acl_tcam_region_destroy+0x49/0xf0 mlxsw_sp_acl_tcam_vregion_rehash_work+0x1f1/0x470 process_one_work+0x151/0x370 worker_thread+0x2cb/0x3e0 kthread+0xd0/0x100 ret_from_fork+0x34/0x50 ret_from_fork_asm+0x1a/0x30 </TASK>
Source: CVE Program / CVE List V5
CVSS Information
N/A
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 存在安全漏洞,该漏洞源于 mlxsw 存在内存泄露问题。
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux 843500518509128a935edab96bd8efef7c54669e ~ c6f3fa7f5a748bf6e5c4eb742686d6952f854e76 -
LinuxLinux 5.1 -

II. Public POCs for CVE-2024-35853

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-35853

登录查看更多情报信息。

Mailing List Discussions for CVE-2024-35853 (1)

Other References for CVE-2024-35853 (7)

Same Patch Batch · Linux · 2024-05-17 · 135 CVEs total

CVE-2023-526879.8 CRITICALcrypto: safexcel - Add error handling for dma_map_sg() calls
CVE-2024-358438.8 HIGHiommu/vt-d: Use device rbtree in iopf reporting path
CVE-2024-358048.8 HIGHKVM: x86: Mark target gfn of emulated atomic instruction as dirty
CVE-2024-358118.8 HIGHwifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach
CVE-2024-274168.8 HIGHBluetooth: hci_event: Fix handling of HCI_EV_IO_CAPA_REQUEST
CVE-2024-274158.8 HIGHnetfilter: bridge: confirm multicast packets before passing them up the stack
CVE-2024-358568.8 HIGHBluetooth: btusb: mediatek: Fix double free of skb in coredump
CVE-2024-358348.2 HIGHxsk: recycle buffer in case Rx queue was full
CVE-2024-274048.2 HIGHmptcp: fix data races on remote_id
CVE-2023-526698.2 HIGHcrypto: s390/aes - Fix buffer overread in CTR mode
CVE-2024-357898.0 HIGHwifi: mac80211: check/clear fast rx for non-4addr sta VLAN changes
CVE-2024-358357.8 HIGHnet/mlx5e: fix a double-free in arfs_create_groups
CVE-2024-358107.8 HIGHdrm/vmwgfx: Fix the lifetime of the bo cursor memory
CVE-2024-358087.8 HIGHmd/dm-raid: don't call md_reap_sync_thread() directly
CVE-2023-526677.8 HIGHnet/mlx5e: fix a potential double-free in fs_any_create_groups
CVE-2024-357987.8 HIGHbtrfs: fix race in read_extent_buffer_pages()
CVE-2024-358397.8 HIGHnetfilter: bridge: replace physindev with physinif in nf_bridge_info
CVE-2024-357927.8 HIGHcrypto: rk3288 - Fix use after free in unprepare
CVE-2024-274037.8 HIGHnetfilter: nft_flow_offload: reset dst in route object after setting up flow
CVE-2024-357917.8 HIGHKVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region()

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-35853

No comments yet


Leave a comment