# CVE-2023-53142: ice: copy last block omitted in ice\_get\_module\_eeprom()

> 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, NVD) `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.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-05-02T15:56:12.949Z
- **Modified:** 2026-11-05T21:17:16.347Z

## Who should check

- Anyone running Linux \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< c813f7a3161481483ae2077651b21bc217c419e0; \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< 90b40ab29298db3a4879c1d3c4e685184386bce6; \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< 8cfbdda65588e75bfbd93e5ee847efcb4796ad09; \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< 84cba1840e68430325ac133a11be06bfb2f7acd8
- Anyone running Linux 5.13

## Description

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

ice: copy last block omitted in ice\_get\_module\_eeprom()

ice\_get\_module\_eeprom() is broken since commit e9c9692c8a81 ("ice:
Reimplement module reads used by ethtool") In this refactor,
ice\_get\_module\_eeprom() reads the eeprom in blocks of size 8.
But the condition that should protect the buffer overflow
ignores the last block. The last block always contains zeros.

Bug uncovered by ethtool upstream commit 9538f384b535
("netlink: eeprom: Defer page requests to individual parsers")
After this commit, ethtool reads a block with length = 1;
to read the SFF-8024 identifier value.

unpatched driver:
$ ethtool -m enp65s0f0np0 offset 0x90 length 8
Offset          Values
------          ------
0x0090:         00 00 00 00 00 00 00 00
$ ethtool -m enp65s0f0np0 offset 0x90 length 12
Offset          Values
------          ------
0x0090:         00 00 01 a0 4d 65 6c 6c 00 00 00 00
$

$ ethtool -m enp65s0f0np0
Offset          Values
------          ------
0x0000:         11 06 06 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0010:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0020:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0030:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0040:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0050:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0060:         00 00 00 00 00 00 00 00 00 00 00 00 00 01 08 00
0x0070:         00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00

patched driver:
$ ethtool -m enp65s0f0np0 offset 0x90 length 8
Offset          Values
------          ------
0x0090:         00 00 01 a0 4d 65 6c 6c
$ ethtool -m enp65s0f0np0 offset 0x90 length 12
Offset          Values
------          ------
0x0090:         00 00 01 a0 4d 65 6c 6c 61 6e 6f 78
$ ethtool -m enp65s0f0np0
    Identifier                                : 0x11 (QSFP28)
    Extended identifier                       : 0x00
    Extended identifier description           : 1.5W max. Power consumption
    Extended identifier description           : No CDR in TX, No CDR in RX
    Extended identifier description           : High Power Class (\> 3.5 W) not enabled
    Connector                                 : 0x23 (No separable connector)
    Transceiver codes                         : 0x88 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    Transceiver type                          : 40G Ethernet: 40G Base-CR4
    Transceiver type                          : 25G Ethernet: 25G Base-CR CA-N
    Encoding                                  : 0x05 (64B/66B)
    BR, Nominal                               : 25500Mbps
    Rate identifier                           : 0x00
    Length (SMF,km)                           : 0km
    Length (OM3 50um)                         : 0m
    Length (OM2 50um)                         : 0m
    Length (OM1 62.5um)                       : 0m
    Length (Copper or Active cable)           : 1m
    Transmitter technology                    : 0xa0 (Copper cable unequalized)
    Attenuation at 2.5GHz                     : 4db
    Attenuation at 5.0GHz                     : 5db
    Attenuation at 7.0GHz                     : 7db
    Attenuation at 12.9GHz                    : 10db
    ........
    ....

## Affected and fixed versions

- Linux: \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< c813f7a3161481483ae2077651b21bc217c419e0; \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< 90b40ab29298db3a4879c1d3c4e685184386bce6; \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< 8cfbdda65588e75bfbd93e5ee847efcb4796ad09; \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< 84cba1840e68430325ac133a11be06bfb2f7acd8 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53142.md
Affected: Linux >= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, < c813f7a3161481483ae2077651b21bc217c419e0; >= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, < 90b40ab29298db3a4879c1d3c4e685184386bce6; >= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, < 8cfbdda65588e75bfbd93e5ee847efcb4796ad09; >= e9c9692c8a81aacf0854f68…
Fixed in: Linux 90b40ab29298db3a4879c1d3c4e685184386bce6, Linux 8cfbdda65588e75bfbd93e5ee847efcb4796ad09, Linux 84cba1840e68430325ac133a11be06bfb2f7acd8

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

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

### How serious is CVE-2023-53142?

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

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

Linux \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< c813f7a3161481483ae2077651b21bc217c419e0; \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< 90b40ab29298db3a4879c1d3c4e685184386bce6; \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< 8cfbdda65588e75bfbd93e5ee847efcb4796ad09; \>= e9c9692c8a81aacf0854f68ab54dc182f8be38e8, \< 84cba1840e68430325ac133a11be06bfb2f7acd8; Linux 5.13.

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

Yes. Fixed in Linux 90b40ab29298db3a4879c1d3c4e685184386bce6, Linux 8cfbdda65588e75bfbd93e5ee847efcb4796ad09, Linux 84cba1840e68430325ac133a11be06bfb2f7acd8. Upgrade Linux to 84cba1840e68430325ac133a11be06bfb2f7acd8 or later.

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

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/c813f7a3161481483ae2077651b21bc217c419e0>
- patch: <https://git.kernel.org/stable/c/90b40ab29298db3a4879c1d3c4e685184386bce6>
- patch: <https://git.kernel.org/stable/c/8cfbdda65588e75bfbd93e5ee847efcb4796ad09>
- patch: <https://git.kernel.org/stable/c/84cba1840e68430325ac133a11be06bfb2f7acd8>

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

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