# CVE-2025-38020: net/mlx5e: Disable MACsec offload for uplink representor profile

> 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, NVD) `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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-06-18T09:28:27.674Z
- **Modified:** 2026-11-05T21:18:04.447Z

## Who should check

- Anyone running Linux \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 1e577aeb51e9deba4f2c10edfcb07cb3cb406598; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< b48a47e137cedfd79655accaeeea6b296ad0b9e1; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 1f80e6ff026041721d8089da8c269b1963628325; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 1a69d53922c1221351739f17837d38e317234e5d; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 588431474eb7572e57a927fa8558c9ba2f8af143
- Anyone running Linux 6.1

## Description

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

net/mlx5e: Disable MACsec offload for uplink representor profile

MACsec offload is not supported in switchdev mode for uplink
representors. When switching to the uplink representor profile, the
MACsec offload feature must be cleared from the netdevice's features.

If left enabled, attempts to add offloads result in a null pointer
dereference, as the uplink representor does not support MACsec offload
even though the feature bit remains set.

Clear NETIF\_F\_HW\_MACSEC in mlx5e\_fix\_uplink\_rep\_features().

Kernel log:

Oops: general protection fault, probably for non-canonical address 0xdffffc000000000f: 0000 \[\#1\] SMP KASAN
KASAN: null-ptr-deref in range \[0x0000000000000078-0x000000000000007f\]
CPU: 29 UID: 0 PID: 4714 Comm: ip Not tainted 6.14.0-rc4\_for\_upstream\_debug\_2025\_03\_02\_17\_35 \#1
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
RIP: 0010:\_\_mutex\_lock+0x128/0x1dd0
Code: d0 7c 08 84 d2 0f 85 ad 15 00 00 8b 35 91 5c fe 03 85 f6 75 29 49 8d 7e 60 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 \<80\> 3c 02 00 0f 85 a6 15 00 00 4d 3b 76 60 0f 85 fd 0b 00 00 65 ff
RSP: 0018:ffff888147a4f160 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 000000000000000f RSI: 0000000000000000 RDI: 0000000000000078
RBP: ffff888147a4f2e0 R08: ffffffffa05d2c19 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000018 R15: ffff888152de0000
FS:  00007f855e27d800(0000) GS:ffff88881ee80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004e5768 CR3: 000000013ae7c005 CR4: 0000000000372eb0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 ? die\_addr+0x3d/0xa0
 ? exc\_general\_protection+0x144/0x220
 ? asm\_exc\_general\_protection+0x22/0x30
 ? mlx5e\_macsec\_add\_secy+0xf9/0x700 \[mlx5\_core\]
 ? \_\_mutex\_lock+0x128/0x1dd0
 ? lockdep\_set\_lock\_cmp\_fn+0x190/0x190
 ? mlx5e\_macsec\_add\_secy+0xf9/0x700 \[mlx5\_core\]
 ? mutex\_lock\_io\_nested+0x1ae0/0x1ae0
 ? lock\_acquire+0x1c2/0x530
 ? macsec\_upd\_offload+0x145/0x380
 ? lockdep\_hardirqs\_on\_prepare+0x400/0x400
 ? kasan\_save\_stack+0x30/0x40
 ? kasan\_save\_stack+0x20/0x40
 ? kasan\_save\_track+0x10/0x30
 ? \_\_kasan\_kmalloc+0x77/0x90
 ? \_\_kmalloc\_noprof+0x249/0x6b0
 ? genl\_family\_rcv\_msg\_attrs\_parse.constprop.0+0xb5/0x240
 ? mlx5e\_macsec\_add\_secy+0xf9/0x700 \[mlx5\_core\]
 mlx5e\_macsec\_add\_secy+0xf9/0x700 \[mlx5\_core\]
 ? mlx5e\_macsec\_add\_rxsa+0x11a0/0x11a0 \[mlx5\_core\]
 macsec\_update\_offload+0x26c/0x820
 ? macsec\_set\_mac\_address+0x4b0/0x4b0
 ? lockdep\_hardirqs\_on\_prepare+0x284/0x400
 ? \_raw\_spin\_unlock\_irqrestore+0x47/0x50
 macsec\_upd\_offload+0x2c8/0x380
 ? macsec\_update\_offload+0x820/0x820
 ? \_\_nla\_parse+0x22/0x30
 ? genl\_family\_rcv\_msg\_attrs\_parse.constprop.0+0x15e/0x240
 genl\_family\_rcv\_msg\_doit+0x1cc/0x2a0
 ? genl\_family\_rcv\_msg\_attrs\_parse.constprop.0+0x240/0x240
 ? cap\_capable+0xd4/0x330
 genl\_rcv\_msg+0x3ea/0x670
 ? genl\_family\_rcv\_msg\_dumpit+0x2a0/0x2a0
 ? lockdep\_set\_lock\_cmp\_fn+0x190/0x190
 ? macsec\_update\_offload+0x820/0x820
 netlink\_rcv\_skb+0x12b/0x390
 ? genl\_family\_rcv\_msg\_dumpit+0x2a0/0x2a0
 ? netlink\_ack+0xd80/0xd80
 ? rwsem\_down\_read\_slowpath+0xf90/0xf90
 ? netlink\_deliver\_tap+0xcd/0xac0
 ? netlink\_deliver\_tap+0x155/0xac0
 ? \_copy\_from\_iter+0x1bb/0x12c0
 genl\_rcv+0x24/0x40
 netlink\_unicast+0x440/0x700
 ? netlink\_attachskb+0x760/0x760
 ? lock\_acquire+0x1c2/0x530
 ? \_\_might\_fault+0xbb/0x170
 netlink\_sendmsg+0x749/0xc10
 ? netlink\_unicast+0x700/0x700
 ? \_\_might\_fault+0xbb/0x170
 ? netlink\_unicast+0x700/0x700
 \_\_sock\_sendmsg+0xc5/0x190
 \_\_\_\_sys\_sendmsg+0x53f/0x760
 ? import\_iovec+0x7/0x10
 ? kernel\_sendmsg+0x30/0x30
 ? \_\_copy\_msghdr+0x3c0/0x3c0
 ? filter\_irq\_stacks+0x90/0x90
 ? stack\_depot\_save\_flags+0x28/0xa30
 \_\_\_sys\_sen
---truncated---

## Affected and fixed versions

- Linux: \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 1e577aeb51e9deba4f2c10edfcb07cb3cb406598; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< b48a47e137cedfd79655accaeeea6b296ad0b9e1; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 1f80e6ff026041721d8089da8c269b1963628325; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 1a69d53922c1221351739f17837d38e317234e5d; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 588431474eb7572e57a927fa8558c9ba2f8af143 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 588431474eb7572e57a927fa8558c9ba2f8af143 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-38020. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38020.md
Affected: Linux >= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, < 1e577aeb51e9deba4f2c10edfcb07cb3cb406598; >= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, < b48a47e137cedfd79655accaeeea6b296ad0b9e1; >= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, < 1f80e6ff026041721d8089da8c269b1963628325; >= 8ff0ac5be1446920d71bdce…
Fixed in: Linux 1e577aeb51e9deba4f2c10edfcb07cb3cb406598, Linux 1f80e6ff026041721d8089da8c269b1963628325, Linux 1a69d53922c1221351739f17837d38e317234e5d, Linux 588431474eb7572e57a927fa8558c9ba2f8af143

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

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

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

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

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

Linux \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 1e577aeb51e9deba4f2c10edfcb07cb3cb406598; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< b48a47e137cedfd79655accaeeea6b296ad0b9e1; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 1f80e6ff026041721d8089da8c269b1963628325; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 1a69d53922c1221351739f17837d38e317234e5d; \>= 8ff0ac5be1446920d71bdce5547f0d8476e280ff, \< 588431474eb7572e57a927fa8558c9ba2f8af143; Linux 6.1.

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

Yes. Fixed in Linux 1e577aeb51e9deba4f2c10edfcb07cb3cb406598, Linux 1f80e6ff026041721d8089da8c269b1963628325, Linux 1a69d53922c1221351739f17837d38e317234e5d, Linux 588431474eb7572e57a927fa8558c9ba2f8af143. Upgrade Linux to 588431474eb7572e57a927fa8558c9ba2f8af143 or later.

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

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/1e577aeb51e9deba4f2c10edfcb07cb3cb406598>
- patch: <https://git.kernel.org/stable/c/b48a47e137cedfd79655accaeeea6b296ad0b9e1>
- patch: <https://git.kernel.org/stable/c/1f80e6ff026041721d8089da8c269b1963628325>
- patch: <https://git.kernel.org/stable/c/1a69d53922c1221351739f17837d38e317234e5d>
- patch: <https://git.kernel.org/stable/c/588431474eb7572e57a927fa8558c9ba2f8af143>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

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

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