# CVE-2025-38150: af\_packet: move notifier's packet\_dev\_mc out of rcu critical section

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-07-03T08:35:55.257Z
- **Modified:** 2026-08-05T11:59:53.344Z

## Who should check

- Anyone running Linux \>= ad7c7b2172c388818a111455643491d75f535e90, \< 2dd4781c5af99415ebbd2f7cc763feb109863c05; \>= ad7c7b2172c388818a111455643491d75f535e90, \< d8d85ef0a631df9127f202e6371bb33a0b589952
- Anyone running Linux 6.15

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

## Affected and fixed versions

- Linux: \>= ad7c7b2172c388818a111455643491d75f535e90, \< 2dd4781c5af99415ebbd2f7cc763feb109863c05; \>= ad7c7b2172c388818a111455643491d75f535e90, \< d8d85ef0a631df9127f202e6371bb33a0b589952 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38150. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38150.md
Affected: Linux >= ad7c7b2172c388818a111455643491d75f535e90, < 2dd4781c5af99415ebbd2f7cc763feb109863c05; >= ad7c7b2172c388818a111455643491d75f535e90, < d8d85ef0a631df9127f202e6371bb33a0b589952; Linux 6.15
Fixed in: Linux 2dd4781c5af99415ebbd2f7cc763feb109863c05

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38150 being exploited?

There is no confirmed exploitation: CVE-2025-38150 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38150?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38150?

Linux \>= ad7c7b2172c388818a111455643491d75f535e90, \< 2dd4781c5af99415ebbd2f7cc763feb109863c05; \>= ad7c7b2172c388818a111455643491d75f535e90, \< d8d85ef0a631df9127f202e6371bb33a0b589952; Linux 6.15.

### Is there a fix for CVE-2025-38150?

Yes. Fixed in Linux 2dd4781c5af99415ebbd2f7cc763feb109863c05. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38150?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2dd4781c5af99415ebbd2f7cc763feb109863c05>
- patch: <https://git.kernel.org/stable/c/d8d85ef0a631df9127f202e6371bb33a0b589952>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38150>

HTML: <https://flawdb.com/CVE-2025-38150> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38150>
