# CVE-2023-53798: ethtool: Fix uninitialized number of lanes

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-09T00:00:54.769Z
- **Modified:** 2026-06-17T06:46:05.517Z

## Who should check

- Anyone running Linux \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< da81af0ef8092ecacd87fac3229c29e2e0ce39fd; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 942a2a0184f7bb1c1ae4bbc556559c86c054b0d2; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 6456d80045d6de47734b1a3879c91f72af186529; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 72808c4ab5fd01bf1214195005e15b434bf55cef; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 9ad685dbfe7e856bbf17a7177b64676d324d6ed7
- Anyone running Linux 5.12

## Description

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

ethtool: Fix uninitialized number of lanes

It is not possible to set the number of lanes when setting link modes
using the legacy IOCTL ethtool interface. Since 'struct
ethtool\_link\_ksettings' is not initialized in this path, drivers receive
an uninitialized number of lanes in 'struct
ethtool\_link\_ksettings::lanes'.

When this information is later queried from drivers, it results in the
ethtool code making decisions based on uninitialized memory, leading to
the following KMSAN splat \[1\]. In practice, this most likely only
happens with the tun driver that simply returns whatever it got in the
set operation.

As far as I can tell, this uninitialized memory is not leaked to user
space thanks to the 'ethtool\_ops-\>cap\_link\_lanes\_supported' check in
linkmodes\_prepare\_data().

Fix by initializing the structure in the IOCTL path. Did not find any
more call sites that pass an uninitialized structure when calling
'ethtool\_ops::set\_link\_ksettings()'.

\[1\]
BUG: KMSAN: uninit-value in ethnl\_update\_linkmodes net/ethtool/linkmodes.c:273 \[inline\]
BUG: KMSAN: uninit-value in ethnl\_set\_linkmodes+0x190b/0x19d0 net/ethtool/linkmodes.c:333
 ethnl\_update\_linkmodes net/ethtool/linkmodes.c:273 \[inline\]
 ethnl\_set\_linkmodes+0x190b/0x19d0 net/ethtool/linkmodes.c:333
 ethnl\_default\_set\_doit+0x88d/0xde0 net/ethtool/netlink.c:640
 genl\_family\_rcv\_msg\_doit net/netlink/genetlink.c:968 \[inline\]
 genl\_family\_rcv\_msg net/netlink/genetlink.c:1048 \[inline\]
 genl\_rcv\_msg+0x141a/0x14c0 net/netlink/genetlink.c:1065
 netlink\_rcv\_skb+0x3f8/0x750 net/netlink/af\_netlink.c:2577
 genl\_rcv+0x40/0x60 net/netlink/genetlink.c:1076
 netlink\_unicast\_kernel net/netlink/af\_netlink.c:1339 \[inline\]
 netlink\_unicast+0xf41/0x1270 net/netlink/af\_netlink.c:1365
 netlink\_sendmsg+0x127d/0x1430 net/netlink/af\_netlink.c:1942
 sock\_sendmsg\_nosec net/socket.c:724 \[inline\]
 sock\_sendmsg net/socket.c:747 \[inline\]
 \_\_\_\_sys\_sendmsg+0xa24/0xe40 net/socket.c:2501
 \_\_\_sys\_sendmsg+0x2a1/0x3f0 net/socket.c:2555
 \_\_sys\_sendmsg net/socket.c:2584 \[inline\]
 \_\_do\_sys\_sendmsg net/socket.c:2593 \[inline\]
 \_\_se\_sys\_sendmsg net/socket.c:2591 \[inline\]
 \_\_x64\_sys\_sendmsg+0x36b/0x540 net/socket.c:2591
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

Uninit was stored to memory at:
 tun\_get\_link\_ksettings+0x37/0x60 drivers/net/tun.c:3544
 \_\_ethtool\_get\_link\_ksettings+0x17b/0x260 net/ethtool/ioctl.c:441
 ethnl\_set\_linkmodes+0xee/0x19d0 net/ethtool/linkmodes.c:327
 ethnl\_default\_set\_doit+0x88d/0xde0 net/ethtool/netlink.c:640
 genl\_family\_rcv\_msg\_doit net/netlink/genetlink.c:968 \[inline\]
 genl\_family\_rcv\_msg net/netlink/genetlink.c:1048 \[inline\]
 genl\_rcv\_msg+0x141a/0x14c0 net/netlink/genetlink.c:1065
 netlink\_rcv\_skb+0x3f8/0x750 net/netlink/af\_netlink.c:2577
 genl\_rcv+0x40/0x60 net/netlink/genetlink.c:1076
 netlink\_unicast\_kernel net/netlink/af\_netlink.c:1339 \[inline\]
 netlink\_unicast+0xf41/0x1270 net/netlink/af\_netlink.c:1365
 netlink\_sendmsg+0x127d/0x1430 net/netlink/af\_netlink.c:1942
 sock\_sendmsg\_nosec net/socket.c:724 \[inline\]
 sock\_sendmsg net/socket.c:747 \[inline\]
 \_\_\_\_sys\_sendmsg+0xa24/0xe40 net/socket.c:2501
 \_\_\_sys\_sendmsg+0x2a1/0x3f0 net/socket.c:2555
 \_\_sys\_sendmsg net/socket.c:2584 \[inline\]
 \_\_do\_sys\_sendmsg net/socket.c:2593 \[inline\]
 \_\_se\_sys\_sendmsg net/socket.c:2591 \[inline\]
 \_\_x64\_sys\_sendmsg+0x36b/0x540 net/socket.c:2591
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

Uninit was stored to memory at:
 tun\_set\_link\_ksettings+0x37/0x60 drivers/net/tun.c:3553
 ethtool\_set\_link\_ksettings+0x600/0x690 net/ethtool/ioctl.c:609
 \_\_dev\_ethtool net/ethtool/ioctl.c:3024 \[inline\]
 dev\_ethtool+0x1db9/0x2a70 net/ethtool/ioctl.c:3078
 dev\_ioctl+0xb07/0x1270 net/core/dev\_ioctl.c:524
 sock\_do\_ioctl+0x295/0x540 net/socket.c:1213
 sock\_i
---truncated---

## Affected and fixed versions

- Linux: \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< da81af0ef8092ecacd87fac3229c29e2e0ce39fd; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 942a2a0184f7bb1c1ae4bbc556559c86c054b0d2; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 6456d80045d6de47734b1a3879c91f72af186529; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 72808c4ab5fd01bf1214195005e15b434bf55cef; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 9ad685dbfe7e856bbf17a7177b64676d324d6ed7 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 9ad685dbfe7e856bbf17a7177b64676d324d6ed7 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53798.md
Affected: Linux >= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, < da81af0ef8092ecacd87fac3229c29e2e0ce39fd; >= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, < 942a2a0184f7bb1c1ae4bbc556559c86c054b0d2; >= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, < 6456d80045d6de47734b1a3879c91f72af186529; >= 012ce4dd3102a0f4d80167d…
Fixed in: Linux 942a2a0184f7bb1c1ae4bbc556559c86c054b0d2, Linux 6456d80045d6de47734b1a3879c91f72af186529, Linux 72808c4ab5fd01bf1214195005e15b434bf55cef, Linux 9ad685dbfe7e856bbf17a7177b64676d324d6ed7

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-2023-53798 being exploited?

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

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-53798?

Linux \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< da81af0ef8092ecacd87fac3229c29e2e0ce39fd; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 942a2a0184f7bb1c1ae4bbc556559c86c054b0d2; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 6456d80045d6de47734b1a3879c91f72af186529; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 72808c4ab5fd01bf1214195005e15b434bf55cef; \>= 012ce4dd3102a0f4d80167de343e9d44b257c1b8, \< 9ad685dbfe7e856bbf17a7177b64676d324d6ed7; Linux 5.12.

### Is there a fix for CVE-2023-53798?

Yes. Fixed in Linux 942a2a0184f7bb1c1ae4bbc556559c86c054b0d2, Linux 6456d80045d6de47734b1a3879c91f72af186529, Linux 72808c4ab5fd01bf1214195005e15b434bf55cef, Linux 9ad685dbfe7e856bbf17a7177b64676d324d6ed7. Upgrade Linux to 9ad685dbfe7e856bbf17a7177b64676d324d6ed7 or later.

### How do I check if I'm affected by CVE-2023-53798?

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

- other: <https://git.kernel.org/stable/c/da81af0ef8092ecacd87fac3229c29e2e0ce39fd>
- other: <https://git.kernel.org/stable/c/942a2a0184f7bb1c1ae4bbc556559c86c054b0d2>
- other: <https://git.kernel.org/stable/c/6456d80045d6de47734b1a3879c91f72af186529>
- other: <https://git.kernel.org/stable/c/72808c4ab5fd01bf1214195005e15b434bf55cef>
- other: <https://git.kernel.org/stable/c/9ad685dbfe7e856bbf17a7177b64676d324d6ed7>

## 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-2023-53798>

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