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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-38640— bpf: Disable migration in nf_hook_run_bpf().

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存在安全漏洞,该漏洞源于nf_hook_run_bpf未禁用迁移,可能导致断言失败。

CVSS 7.8 · High EPSS 0.18% · P7

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation

Affected Version Matrix 12

VendorProduct Version RangeStatus
Linux Linux fd9c663b9ad67dedfc9a3fd3429ddd3e83782b4d< ee2502485702e4398cd74dbfb288bfa111d25e62 affected
fd9c663b9ad67dedfc9a3fd3429ddd3e83782b4d< 62f6175d145e00fc999fd2fcbffad3f59253c66a affected
fd9c663b9ad67dedfc9a3fd3429ddd3e83782b4d< e0199c28167a8a4adec036005a8df268b2b68529 affected
fd9c663b9ad67dedfc9a3fd3429ddd3e83782b4d< 0a356da16fb933abbeeb7aea038c351f3342cd3f affected
fd9c663b9ad67dedfc9a3fd3429ddd3e83782b4d< 17ce3e5949bc37557305ad46316f41c7875d6366 affected
6.4 affected
< 6.4 unaffected
6.6.102≤ 6.6.* unaffected
… +4 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-38640

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
bpf: Disable migration in nf_hook_run_bpf().
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Disable migration in nf_hook_run_bpf(). syzbot reported that the netfilter bpf prog can be called without migration disabled in xmit path. Then the assertion in __bpf_prog_run() fails, triggering the splat below. [0] Let's use bpf_prog_run_pin_on_cpu() in nf_hook_run_bpf(). [0]: BUG: assuming non migratable context at ./include/linux/filter.h:703 in_atomic(): 0, irqs_disabled(): 0, migration_disabled() 0 pid: 5829, name: sshd-session 3 locks held by sshd-session/5829: #0: ffff88807b4e4218 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1667 [inline] #0: ffff88807b4e4218 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_sendmsg+0x20/0x50 net/ipv4/tcp.c:1395 #1: ffffffff8e5c4e00 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #1: ffffffff8e5c4e00 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #1: ffffffff8e5c4e00 (rcu_read_lock){....}-{1:3}, at: __ip_queue_xmit+0x69/0x26c0 net/ipv4/ip_output.c:470 #2: ffffffff8e5c4e00 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #2: ffffffff8e5c4e00 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #2: ffffffff8e5c4e00 (rcu_read_lock){....}-{1:3}, at: nf_hook+0xb2/0x680 include/linux/netfilter.h:241 CPU: 0 UID: 0 PID: 5829 Comm: sshd-session Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 __cant_migrate kernel/sched/core.c:8860 [inline] __cant_migrate+0x1c7/0x250 kernel/sched/core.c:8834 __bpf_prog_run include/linux/filter.h:703 [inline] bpf_prog_run include/linux/filter.h:725 [inline] nf_hook_run_bpf+0x83/0x1e0 net/netfilter/nf_bpf_link.c:20 nf_hook_entry_hookfn include/linux/netfilter.h:157 [inline] nf_hook_slow+0xbb/0x200 net/netfilter/core.c:623 nf_hook+0x370/0x680 include/linux/netfilter.h:272 NF_HOOK_COND include/linux/netfilter.h:305 [inline] ip_output+0x1bc/0x2a0 net/ipv4/ip_output.c:433 dst_output include/net/dst.h:459 [inline] ip_local_out net/ipv4/ip_output.c:129 [inline] __ip_queue_xmit+0x1d7d/0x26c0 net/ipv4/ip_output.c:527 __tcp_transmit_skb+0x2686/0x3e90 net/ipv4/tcp_output.c:1479 tcp_transmit_skb net/ipv4/tcp_output.c:1497 [inline] tcp_write_xmit+0x1274/0x84e0 net/ipv4/tcp_output.c:2838 __tcp_push_pending_frames+0xaf/0x390 net/ipv4/tcp_output.c:3021 tcp_push+0x225/0x700 net/ipv4/tcp.c:759 tcp_sendmsg_locked+0x1870/0x42b0 net/ipv4/tcp.c:1359 tcp_sendmsg+0x2e/0x50 net/ipv4/tcp.c:1396 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:851 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg net/socket.c:727 [inline] sock_write_iter+0x4aa/0x5b0 net/socket.c:1131 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6c7/0x1150 fs/read_write.c:686 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe7d365d407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP:
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存在安全漏洞,该漏洞源于nf_hook_run_bpf未禁用迁移,可能导致断言失败。
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 fd9c663b9ad67dedfc9a3fd3429ddd3e83782b4d ~ ee2502485702e4398cd74dbfb288bfa111d25e62 -
Linux Linux 6.4 -

II. Public POCs for CVE-2025-38640

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-38640

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

Same Patch Batch · Linux · 2025-08-22 · 60 CVEs total

CVE-2025-38660 9.8 CRITICAL [ceph] parse_longname(): strrchr() expects NUL-terminated string
CVE-2025-38658 8.8 HIGH nvmet: pci-epf: Do not complete commands twice if nvmet_req_init() fails
CVE-2025-38643 8.8 HIGH wifi: cfg80211: Add missing lock in cfg80211_check_and_end_cac()
CVE-2024-58239 8.2 HIGH tls: stop recv() if initial process_rx_list gave us non-DATA
CVE-2025-38627 7.8 HIGH f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic
CVE-2025-38659 7.8 HIGH gfs2: No more self recovery
CVE-2025-38656 7.8 HIGH wifi: iwlwifi: Fix error code in iwl_op_mode_dvm_start()
CVE-2025-38653 7.8 HIGH proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al
CVE-2025-38675 7.8 HIGH xfrm: state: initialize state_ptrs earlier in xfrm_state_find
CVE-2025-38667 7.8 HIGH iio: fix potential out-of-bound write
CVE-2025-38619 7.8 HIGH media: ti: j721e-csi2rx: fix list_del corruption
CVE-2025-38670 7.8 HIGH arm64/entry: Mask DAIF in cpu_switch_to(), call_on_irq_stack()
CVE-2025-38618 7.8 HIGH vsock: Do not allow binding to VMADDR_PORT_ANY
CVE-2025-38617 7.8 HIGH net/packet: fix a race in packet_set_ring() and packet_notifier()
CVE-2025-38616 7.8 HIGH tls: handle data disappearing from under the TLS ULP
CVE-2025-38657 7.3 HIGH wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()
CVE-2025-38652 7.3 HIGH f2fs: fix to avoid out-of-boundary access in devs.path
CVE-2025-38661 7.1 HIGH platform/x86: alienware-wmi-wmax: Fix `dmi_system_id` array
CVE-2025-38639 7.1 HIGH netfilter: xt_nfacct: don't assume acct name is null-terminated
CVE-2025-38662 7.1 HIGH ASoC: mediatek: mt8365-dai-i2s: pass correct size to mt8365_dai_set_priv

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-38640

No comments yet


Leave a comment