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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-41006— netrom: Fix a memory leak in nr_heartbeat_expiry()

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 存在安全漏洞,该漏洞源于 netrom 组件在 nr_heartbeat_expiry 函数中存在内存泄漏。

AI Predicted 5.3 Difficulty: Moderate EPSS 0.24% · P14

Possible ATT&CK Techniques 1 AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 25

VendorProduct Version RangeStatus
Linux Linux a31caf5779ace8fa98b0d454133808e082ee7a1b< d616876256b38ecf9a1a1c7d674192c5346bc69c affected
fe9b9e621cebe6b7e83f7e954c70f8bb430520e5< e07a9c2a850cdebf625e7a1b8171bd23a8554313 affected
7de16d75b20ab13b75a7291f449a1b00090edfea< 5391f9db2cab5ef1cb411be1ab7dbec728078fba affected
d2d3ab1b1de3302de2c85769121fd4f890e47ceb< 280cf1173726a7059b628c610c71050d5c0b6937 affected
51e394c6f81adbfe7c34d15f58b3d4d44f144acf< a02fd5d775cf9787ee7698c797e20f2fa13d2e2b affected
409db27e3a2eb5e8ef7226ca33be33361b3ed1c9< b6ebe4fed73eedeb73f4540f8edc4871945474c8 affected
409db27e3a2eb5e8ef7226ca33be33361b3ed1c9< d377f5a28332954b19e373d36823e59830ab1712 affected
409db27e3a2eb5e8ef7226ca33be33361b3ed1c9< 0b9130247f3b6a1122478471ff0e014ea96bb735 affected
… +17 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-41006

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
netrom: Fix a memory leak in nr_heartbeat_expiry()
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: netrom: Fix a memory leak in nr_heartbeat_expiry() syzbot reported a memory leak in nr_create() [0]. Commit 409db27e3a2e ("netrom: Fix use-after-free of a listening socket.") added sock_hold() to the nr_heartbeat_expiry() function, where a) a socket has a SOCK_DESTROY flag or b) a listening socket has a SOCK_DEAD flag. But in the case "a," when the SOCK_DESTROY flag is set, the file descriptor has already been closed and the nr_release() function has been called. So it makes no sense to hold the reference count because no one will call another nr_destroy_socket() and put it as in the case "b." nr_connect nr_establish_data_link nr_start_heartbeat nr_release switch (nr->state) case NR_STATE_3 nr->state = NR_STATE_2 sock_set_flag(sk, SOCK_DESTROY); nr_rx_frame nr_process_rx_frame switch (nr->state) case NR_STATE_2 nr_state2_machine() nr_disconnect() nr_sk(sk)->state = NR_STATE_0 sock_set_flag(sk, SOCK_DEAD) nr_heartbeat_expiry switch (nr->state) case NR_STATE_0 if (sock_flag(sk, SOCK_DESTROY) || (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) sock_hold() // ( !!! ) nr_destroy_socket() To fix the memory leak, let's call sock_hold() only for a listening socket. Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with Syzkaller. [0]: https://syzkaller.appspot.com/bug?extid=d327a1f3b12e1e206c16
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 存在安全漏洞,该漏洞源于 netrom 组件在 nr_heartbeat_expiry 函数中存在内存泄漏。
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 a31caf5779ace8fa98b0d454133808e082ee7a1b ~ d616876256b38ecf9a1a1c7d674192c5346bc69c -
Linux Linux 6.2 -

II. Public POCs for CVE-2024-41006

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

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

Other References for CVE-2024-41006 (8)

Same Patch Batch · Linux · 2024-07-12 · 122 CVEs total

CVE-2024-40907 9.8 CRITICAL ionic: fix kernel panic in XDP_TX action
CVE-2024-40937 9.8 CRITICAL gve: Clear napi->skb before dev_kfree_skb_any()
CVE-2024-40999 9.8 CRITICAL net: ena: Add validation for completion descriptors consistency
CVE-2024-40923 9.8 CRITICAL vmxnet3: disable rx data ring on dma allocation failure
CVE-2024-40983 9.8 CRITICAL tipc: force a dst refcount before doing decryption
CVE-2024-40910 8.8 HIGH ax25: Fix refcount imbalance on inbound connections
CVE-2024-40911 8.8 HIGH wifi: cfg80211: Lock wiphy in cfg80211_get_station
CVE-2024-40941 8.1 HIGH wifi: iwlwifi: mvm: don't read past the mfuart notifcation
CVE-2024-40953 7.9 HIGH KVM: Fix a data race on last_boosted_vcpu in kvm_vcpu_on_spin()
CVE-2024-40979 7.8 HIGH wifi: ath12k: fix kernel crash during resume
CVE-2024-40991 7.8 HIGH dmaengine: ti: k3-udma-glue: Fix of_k3_udma_glue_parse_chn_by_id()
CVE-2024-40990 7.8 HIGH RDMA/mlx5: Add check for srq max_sge attribute
CVE-2024-40989 7.8 HIGH KVM: arm64: Disassociate vcpus from redistributor region on teardown
CVE-2024-40986 7.8 HIGH dmaengine: xilinx: xdma: Fix data synchronisation in xdma_channel_isr()
CVE-2024-40918 7.8 HIGH parisc: Try to fix random segmentation faults in package builds
CVE-2024-40984 7.8 HIGH ACPICA: Revert "ACPICA: avoid Info: mapping multiple BARs. Your kernel is fine."
CVE-2024-40954 7.8 HIGH net: do not leave a dangling sk pointer, when socket creation fails
CVE-2024-40947 7.8 HIGH ima: Avoid blocking in RCU read-side critical section
CVE-2024-40949 7.8 HIGH mm: shmem: fix getting incorrect lruvec when replacing a shmem folio
CVE-2024-40943 7.8 HIGH ocfs2: fix races between hole punching and AIO+DIO

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-41006

No comments yet


Leave a comment