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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-40910— ax25: Fix refcount imbalance on inbound connections

CVSS 8.8 · High EPSS 0.45% · P37

Possible ATT&CK Techniques 1AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 22

VendorProductVersion RangeStatus
LinuxLinux9fd75b66b8f68498454d685dc4ba13192ae069b0< f4df9d6c8d4e4c818252b0419c2165d66eabd4ebaffected
9fd75b66b8f68498454d685dc4ba13192ae069b0< 52100fd74ad07b53a4666feafff1cd11436362d3affected
9fd75b66b8f68498454d685dc4ba13192ae069b0< a723a6c8d4831cc8e2c7b0c9f3f0c010d4671964affected
9fd75b66b8f68498454d685dc4ba13192ae069b0< 3c34fb0bd4a4237592c5ecb5b2e2531900c55774affected
c44a453ffe16eb08acdc6129ac4fa0192dbc0456affected
de55a1338e6a48ff1e41ea8db1432496fbe2a62baffected
9e1e088a57c23251f1cfe9601bbd90ade2ea73b9affected
b20a5ab0f5fb175750c6bafd4cf12daccf00c738affected
… +14 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-40910

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
ax25: Fix refcount imbalance on inbound connections
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: ax25: Fix refcount imbalance on inbound connections When releasing a socket in ax25_release(), we call netdev_put() to decrease the refcount on the associated ax.25 device. However, the execution path for accepting an incoming connection never calls netdev_hold(). This imbalance leads to refcount errors, and ultimately to kernel crashes. A typical call trace for the above situation will start with one of the following errors: refcount_t: decrement hit 0; leaking memory. refcount_t: underflow; use-after-free. And will then have a trace like: Call Trace: <TASK> ? show_regs+0x64/0x70 ? __warn+0x83/0x120 ? refcount_warn_saturate+0xb2/0x100 ? report_bug+0x158/0x190 ? prb_read_valid+0x20/0x30 ? handle_bug+0x3e/0x70 ? exc_invalid_op+0x1c/0x70 ? asm_exc_invalid_op+0x1f/0x30 ? refcount_warn_saturate+0xb2/0x100 ? refcount_warn_saturate+0xb2/0x100 ax25_release+0x2ad/0x360 __sock_release+0x35/0xa0 sock_close+0x19/0x20 [...] On reboot (or any attempt to remove the interface), the kernel gets stuck in an infinite loop: unregister_netdevice: waiting for ax0 to become free. Usage count = 0 This patch corrects these issues by ensuring that we call netdev_hold() and ax25_dev_hold() for new connections in ax25_accept(). This makes the logic leading to ax25_accept() match the logic for ax25_bind(): in both cases we increment the refcount, which is ultimately decremented in ax25_release().
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:A/AC:L/PR:N/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 存在安全漏洞,该漏洞源于 ax25 协议在处理传入连接时存在引用计数不平衡问题。
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 9fd75b66b8f68498454d685dc4ba13192ae069b0 ~ f4df9d6c8d4e4c818252b0419c2165d66eabd4eb -
LinuxLinux 5.18 -

II. Public POCs for CVE-2024-40910

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-40910

登录查看更多情报信息。

Other References for CVE-2024-40910 (4)

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

CVE-2024-409999.8 CRITICALnet: ena: Add validation for completion descriptors consistency
CVE-2024-409079.8 CRITICALionic: fix kernel panic in XDP_TX action
CVE-2024-409239.8 CRITICALvmxnet3: disable rx data ring on dma allocation failure
CVE-2024-409839.8 CRITICALtipc: force a dst refcount before doing decryption
CVE-2024-409379.8 CRITICALgve: Clear napi->skb before dev_kfree_skb_any()
CVE-2024-409118.8 HIGHwifi: cfg80211: Lock wiphy in cfg80211_get_station
CVE-2024-409418.1 HIGHwifi: iwlwifi: mvm: don't read past the mfuart notifcation
CVE-2024-409537.9 HIGHKVM: Fix a data race on last_boosted_vcpu in kvm_vcpu_on_spin()
CVE-2024-409567.8 HIGHdmaengine: idxd: Fix possible Use-After-Free in irq_process_work_list
CVE-2024-409187.8 HIGHparisc: Try to fix random segmentation faults in package builds
CVE-2024-409247.8 HIGHdrm/i915/dpt: Make DPT object unshrinkable
CVE-2024-409257.8 HIGHblock: fix request.queuelist usage in flush
CVE-2024-409437.8 HIGHocfs2: fix races between hole punching and AIO+DIO
CVE-2024-409477.8 HIGHima: Avoid blocking in RCU read-side critical section
CVE-2024-409497.8 HIGHmm: shmem: fix getting incorrect lruvec when replacing a shmem folio
CVE-2024-409907.8 HIGHRDMA/mlx5: Add check for srq max_sge attribute
CVE-2024-409867.8 HIGHdmaengine: xilinx: xdma: Fix data synchronisation in xdma_channel_isr()
CVE-2024-409897.8 HIGHKVM: arm64: Disassociate vcpus from redistributor region on teardown
CVE-2024-409847.8 HIGHACPICA: Revert "ACPICA: avoid Info: mapping multiple BARs. Your kernel is fine."
CVE-2024-409917.8 HIGHdmaengine: ti: k3-udma-glue: Fix of_k3_udma_glue_parse_chn_by_id()

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-40910

No comments yet


Leave a comment