Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38150

published high CVSS 3.1 · 7.8

af_packet: move notifier's packet_dev_mc out of rcu critical section

Published
03 Jul 2025, 08:35:55 UTC
Updated
05 Aug 2026, 11:59:53 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxad7c7b2172c388818a111455643491d75f535e90 to < 2dd4781c5af99415ebbd2f7cc763feb109863c05 · ad7c7b2172c388818a111455643491d75f535e90 to < d8d85ef0a631df9127f202e6371bb33a0b589952 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.15.3 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: af_packet: move notifier's packet_dev_mc out of rcu critical section Syzkaller reports the following issue: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:578 __mutex_lock+0x106/0xe80 kernel/locking/mutex.c:746 team_change_rx_flags+0x38/0x220 drivers/net/team/team_core.c:1781 dev_change_rx_flags net/core/dev.c:9145 [inline] __dev_set_promiscuity+0x3f8/0x590 net/core/dev.c:9189 netif_set_promiscuity+0x50/0xe0 net/core/dev.c:9201 dev_set_promiscuity+0x126/0x260 net/core/dev_api.c:286 packet_dev_mc net/packet/af_packet.c:3698 [inline] packet_dev_mclist_delete net/packet/af_packet.c:3722 [inline] packet_notifier+0x292/0xa60 net/packet/af_packet.c:4247 notifier_call_chain+0x1b3/0x3e0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2214 [inline] call_netdevice_notifiers net/core/dev.c:2228 [inline] unregister_netdevice_many_notify+0x15d8/0x2330 net/core/dev.c:11972 rtnl_delete_link net/core/rtnetlink.c:3522 [inline] rtnl_dellink+0x488/0x710 net/core/rtnetlink.c:3564 rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6955 netlink_rcv_skb+0x219/0x490 net/netlink/af_netlink.c:2534 Calling `PACKET_ADD_MEMBERSHIP` on an ops-locked device can trigger the `NETDEV_UNREGISTER` notifier, which may require disabling promiscuous and/or allmulti mode. Both of these operations require acquiring the netdev instance lock. Move the call to `packet_dev_mc` outside of the RCU critical section. The `mclist` modifications (add, del, flush, unregister) are protected by the RTNL, not the RCU. The RCU only protects the `sklist` and its associated `sks`. The delayed operation on the `mclist` entry remains within the RTNL.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Triggering requires local syscalls — an AF_PACKET socket with `setsockopt(PACKET_ADD_MEMBERSHIP)` plus an rtnetlink `RTM_DELLINK` (or netns teardown) to fire `NETDEV_UNREGISTER`. No remote peer can reach `packet_notifier()`. AC:L - The attacker performs every step deterministically: create the ops-locked/team device, add the promisc membership, then delete the device — the promiscuity 1→0 transition guarantees the sleeping call under RCU. Mutex contention and the concurrent `packet_release()` needed for the memory-safety outcome are both created by the attacker's own threads and sockets. PR:L - `packet_create()` checks only `ns_capable(net->user_ns, CAP_NET_RAW)`, and device create/delete needs CAP_NET_ADMIN in the netns — both granted to an unprivileged user inside `unshare -Urn`. No real root is required. UI:N - The attacking process performs the setsockopt and the device unregister itself; no victim action or cooperating process is involved. S:U - The fault and its consequences are confined to the kernel of the same host; no VM, IOMMU, or hypervisor boundary is crossed. C:H - Blocking inside the RCU read-side section lets a grace period (and a racing `packet_release()`'s `synchronize_net()`) complete early on non-preemptible-RCU kernels, so `sk_for_each_rcu()` keeps dereferencing a freed `packet_sock` — an attacker-groomable slab object that yields a kernel-memory read primitive. I:H - The same stale iteration then writes into the freed object (`spin_lock(&po->bind_lock)`, `sk->sk_err = ENETDOWN`, `WRITE_ONCE(po->ifindex, -1)`), and the forced `preempt_count_set()` in `schedule_debug()` corrupts preemption bookkeeping — both usable for controlled corruption and control-flow hijack. A:H - The confirmed syzbot outcome is a "BUG: sleeping function called from invalid context" oops (a panic under `panic_on_warn`/`panic_on_oops`), and blocking under RCU while holding RTNL causes grace-period stalls that can wedge the entire networking stack.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ad7c7b2172c388818a111455643491d75f535e90 to < 2dd4781c5af99415ebbd2f7cc763feb109863c05 (affected · git)ad7c7b2172c388818a111455643491d75f535e90 to < d8d85ef0a631df9127f202e6371bb33a0b589952 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.15 (affected)0 to < 6.15 (unaffected · semver)6.15.3 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

af_packet: move notifier's packet_dev_mc out of rcu critical section

Provenance

Schema
5.2
Searchable
yes
Content hash
fec9951919c1504687e7f7b57c9dc1c341b52eb2e8b333da4e12971d9d853afb
Ingested
23 Sep 2026, 08:46:29 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected