# CVE-2025-39874: macsec: sync features on RTM\_NEWLINK

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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)
- **Published:** 2025-09-23T06:00:46.690Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< d7624629ccf47135c65fef0701fa0d9a115b87f3; \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< 0f82c3ba66c6b2e3cde0f255156a753b108ee9dc
- Anyone running Linux 6.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

macsec: sync features on RTM\_NEWLINK

Syzkaller managed to lock the lower device via ETHTOOL\_SFEATURES:

 netdev\_lock include/linux/netdevice.h:2761 \[inline\]
 netdev\_lock\_ops include/net/netdev\_lock.h:42 \[inline\]
 netdev\_sync\_lower\_features net/core/dev.c:10649 \[inline\]
 \_\_netdev\_update\_features+0xcb1/0x1be0 net/core/dev.c:10819
 netdev\_update\_features+0x6d/0xe0 net/core/dev.c:10876
 macsec\_notify+0x2f5/0x660 drivers/net/macsec.c:4533
 notifier\_call\_chain+0x1b3/0x3e0 kernel/notifier.c:85
 call\_netdevice\_notifiers\_extack net/core/dev.c:2267 \[inline\]
 call\_netdevice\_notifiers net/core/dev.c:2281 \[inline\]
 netdev\_features\_change+0x85/0xc0 net/core/dev.c:1570
 \_\_dev\_ethtool net/ethtool/ioctl.c:3469 \[inline\]
 dev\_ethtool+0x1536/0x19b0 net/ethtool/ioctl.c:3502
 dev\_ioctl+0x392/0x1150 net/core/dev\_ioctl.c:759

It happens because lower features are out of sync with the upper:

  \_\_dev\_ethtool (real\_dev)
    netdev\_lock\_ops(real\_dev)
    ETHTOOL\_SFEATURES
      \_\_netdev\_features\_change
        netdev\_sync\_upper\_features
          disable LRO on the lower
    if (old\_features != dev-\>features)
      netdev\_features\_change
        fires NETDEV\_FEAT\_CHANGE
	macsec\_notify
	  NETDEV\_FEAT\_CHANGE
	    netdev\_update\_features (for each macsec dev)
	      netdev\_sync\_lower\_features
	        if (upper\_features != lower\_features)
	          netdev\_lock\_ops(lower) \# lower == real\_dev
		  stuck
		  ...

    netdev\_unlock\_ops(real\_dev)

Per commit af5f54b0ef9e ("net: Lock lower level devices when updating
features"), we elide the lock/unlock when the upper and lower features
are synced. Makes sure the lower (real\_dev) has proper features after
the macsec link has been created. This makes sure we never hit the
situation where we need to sync upper flags to the lower.

## Affected and fixed versions

- Linux: \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< d7624629ccf47135c65fef0701fa0d9a115b87f3; \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< 0f82c3ba66c6b2e3cde0f255156a753b108ee9dc (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 0f82c3ba66c6b2e3cde0f255156a753b108ee9dc or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39874.md
Affected: Linux >= 7e4d784f5810bba76c4593791028e13cce4af547, < d7624629ccf47135c65fef0701fa0d9a115b87f3; >= 7e4d784f5810bba76c4593791028e13cce4af547, < 0f82c3ba66c6b2e3cde0f255156a753b108ee9dc; Linux 6.15
Fixed in: Linux 0f82c3ba66c6b2e3cde0f255156a753b108ee9dc

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-39874 being exploited?

There is no confirmed exploitation: CVE-2025-39874 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-39874?

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

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

Linux \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< d7624629ccf47135c65fef0701fa0d9a115b87f3; \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< 0f82c3ba66c6b2e3cde0f255156a753b108ee9dc; Linux 6.15.

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

Yes. Fixed in Linux 0f82c3ba66c6b2e3cde0f255156a753b108ee9dc. Upgrade Linux to 0f82c3ba66c6b2e3cde0f255156a753b108ee9dc or later.

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

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/d7624629ccf47135c65fef0701fa0d9a115b87f3>
- patch: <https://git.kernel.org/stable/c/0f82c3ba66c6b2e3cde0f255156a753b108ee9dc>

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

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