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

Goal: 1000 CNY · Raised: 1110 CNY

100%

CVE-2025-21781— batman-adv: fix panic during interface removal

AI Predicted 5.0 Difficulty: Moderate EPSS 0.02% · P5

Affected Version Matrix 18

VendorProductVersion RangeStatus
LinuxLinuxc833484e5f3872a38fe232c663586069d5ad9645< 167422a07096a6006599067c8b55884064fa0b72affected
c833484e5f3872a38fe232c663586069d5ad9645< ce3f1545bf8fa28bd05ec113679e8e6cd23af577affected
c833484e5f3872a38fe232c663586069d5ad9645< f0a16c6c79768180333f3e41ce63f32730e3c3afaffected
c833484e5f3872a38fe232c663586069d5ad9645< 7eb5dd201695645af071592a50026eb780081a72affected
c833484e5f3872a38fe232c663586069d5ad9645< 072b2787321903287a126c148e8db87dd7ef96feaffected
c833484e5f3872a38fe232c663586069d5ad9645< 2c3fb7df4cc6d043f70d4a8a10f8b915bbfb75e7affected
c833484e5f3872a38fe232c663586069d5ad9645< 522b1596ea19e327853804da2de60aeb9c5d6f42affected
c833484e5f3872a38fe232c663586069d5ad9645< ccb7276a6d26d6f8416e315b43b45e15ee7f29e2affected
… +10 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-21781

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
batman-adv: fix panic during interface removal
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: batman-adv: fix panic during interface removal Reference counting is used to ensure that batadv_hardif_neigh_node and batadv_hard_iface are not freed before/during batadv_v_elp_throughput_metric_update work is finished. But there isn't a guarantee that the hard if will remain associated with a soft interface up until the work is finished. This fixes a crash triggered by reboot that looks like this: Call trace: batadv_v_mesh_free+0xd0/0x4dc [batman_adv] batadv_v_elp_throughput_metric_update+0x1c/0xa4 process_one_work+0x178/0x398 worker_thread+0x2e8/0x4d0 kthread+0xd8/0xdc ret_from_fork+0x10/0x20 (the batadv_v_mesh_free call is misleading, and does not actually happen) I was able to make the issue happen more reliably by changing hardif_neigh->bat_v.metric_work work to be delayed work. This allowed me to track down and confirm the fix. [sven@narfation.org: prevent entering batadv_v_elp_get_throughput without soft_iface]
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于batman-adv在接口移除时未正确处理引用计数,可能导致崩溃。
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 c833484e5f3872a38fe232c663586069d5ad9645 ~ 167422a07096a6006599067c8b55884064fa0b72 -
LinuxLinux 4.6 -

II. Public POCs for CVE-2025-21781

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-21781

登录查看更多情报信息。

Patches & Fixes for CVE-2025-21781 (5)

Other References for CVE-2025-21781 (3)

Same Patch Batch · Linux · 2025-02-27 · 177 CVEs total

CVE-2025-217567.8 HIGHvsock: Keep the binding until socket destruction
CVE-2025-21770iommu: Fix potential memory leak in iopf_queue_remove_device()
CVE-2025-21761openvswitch: use RCU protection in ovs_vport_cmd_fill_info()
CVE-2025-21763neighbour: use RCU protection in __neigh_notify()
CVE-2025-21762arp: use RCU protection in arp_xmit()
CVE-2025-21764ndisc: use RCU protection in ndisc_alloc_skb()
CVE-2025-21765ipv6: use RCU protection in ip6_default_advmss()
CVE-2025-21766ipv4: use RCU protection in __ip_rt_update_pmtu()
CVE-2025-21767clocksource: Use migrate_disable() to avoid calling get_random_u32() in atomic context
CVE-2025-21769ptp: vmclock: Add .owner to vmclock_miscdev_fops
CVE-2025-21768net: ipv6: fix dst ref loops in rpl, seg6 and ioam6 lwtunnels
CVE-2025-21771sched_ext: Fix incorrect autogroup migration detection
CVE-2025-21776USB: hub: Ignore non-compliant devices with too many configs or interfaces
CVE-2025-21783gpiolib: Fix crash on error in gpiochip_get_ngpios()
CVE-2025-21780drm/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table()
CVE-2025-21779KVM: x86: Reject Hyper-V's SEND_IPI hypercalls if local APIC isn't in-kernel
CVE-2025-21778tracing: Do not allow mmap() of persistent ring buffer
CVE-2025-21777ring-buffer: Validate the persistent meta data subbuf array
CVE-2025-21775can: ctucanfd: handle skb allocation failure
CVE-2025-21773can: etas_es58x: fix potential NULL pointer dereference on udev->serial

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-21781

No comments yet


Leave a comment