# CVE-2023-54118: serial: sc16is7xx: setup GPIO controller later in probe

> 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-28)
- **Published:** 2025-12-24T13:06:38.998Z
- **Modified:** 2026-06-17T06:46:50.057Z

## Who should check

- Anyone running Linux \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< 17b96b5c19bec791b433890549e44ca523dc82aa; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< 49b326ce8a686428d8cbb82ed74fc88ed3f95a51; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< f57c2164d082a36d177ab7fbf54c18970df89c22; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< b71ff206707855ce73c04794c76f7b678b2d4f72; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< c8f71b49ee4d28930c4a6798d1969fa91dc4ef3e
- Anyone running Linux 3.16

## Description

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

serial: sc16is7xx: setup GPIO controller later in probe

The GPIO controller component of the sc16is7xx driver is setup too
early, which can result in a race condition where another device tries
to utilise the GPIO lines before the sc16is7xx device has finished
initialising.

This issue manifests itself as an Oops when the GPIO lines are configured:

    Unable to handle kernel read from unreadable memory at virtual address
    ...
    pc : sc16is7xx\_gpio\_direction\_output+0x68/0x108 \[sc16is7xx\]
    lr : sc16is7xx\_gpio\_direction\_output+0x4c/0x108 \[sc16is7xx\]
    ...
    Call trace:
    sc16is7xx\_gpio\_direction\_output+0x68/0x108 \[sc16is7xx\]
    gpiod\_direction\_output\_raw\_commit+0x64/0x318
    gpiod\_direction\_output+0xb0/0x170
    create\_gpio\_led+0xec/0x198
    gpio\_led\_probe+0x16c/0x4f0
    platform\_drv\_probe+0x5c/0xb0
    really\_probe+0xe8/0x448
    driver\_probe\_device+0xe8/0x138
    \_\_device\_attach\_driver+0x94/0x118
    bus\_for\_each\_drv+0x8c/0xe0
    \_\_device\_attach+0x100/0x1b8
    device\_initial\_probe+0x28/0x38
    bus\_probe\_device+0xa4/0xb0
    deferred\_probe\_work\_func+0x90/0xe0
    process\_one\_work+0x1c4/0x480
    worker\_thread+0x54/0x430
    kthread+0x138/0x150
    ret\_from\_fork+0x10/0x1c

This patch moves the setup of the GPIO controller functions to later in the
probe function, ensuring the sc16is7xx device has already finished
initialising by the time other devices try to make use of the GPIO lines.
The error handling has also been reordered to reflect the new
initialisation order.

## Affected and fixed versions

- Linux: \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< 17b96b5c19bec791b433890549e44ca523dc82aa; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< 49b326ce8a686428d8cbb82ed74fc88ed3f95a51; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< f57c2164d082a36d177ab7fbf54c18970df89c22; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< b71ff206707855ce73c04794c76f7b678b2d4f72; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< c8f71b49ee4d28930c4a6798d1969fa91dc4ef3e (cvelist)
- Linux: 3.16 (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-2023-54118. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54118.md
Affected: Linux >= dfeae619d781dee61666d5551b93ba3be755a86b, < 17b96b5c19bec791b433890549e44ca523dc82aa; >= dfeae619d781dee61666d5551b93ba3be755a86b, < 49b326ce8a686428d8cbb82ed74fc88ed3f95a51; >= dfeae619d781dee61666d5551b93ba3be755a86b, < f57c2164d082a36d177ab7fbf54c18970df89c22; >= dfeae619d781dee61666d55…
Fixed in: Linux 17b96b5c19bec791b433890549e44ca523dc82aa, Linux 49b326ce8a686428d8cbb82ed74fc88ed3f95a51

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

There is no confirmed exploitation: CVE-2023-54118 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-28).

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

It has no CVSS score yet. Unknown.

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

Linux \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< 17b96b5c19bec791b433890549e44ca523dc82aa; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< 49b326ce8a686428d8cbb82ed74fc88ed3f95a51; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< f57c2164d082a36d177ab7fbf54c18970df89c22; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< b71ff206707855ce73c04794c76f7b678b2d4f72; \>= dfeae619d781dee61666d5551b93ba3be755a86b, \< c8f71b49ee4d28930c4a6798d1969fa91dc4ef3e; Linux 3.16.

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

Yes. Fixed in Linux 17b96b5c19bec791b433890549e44ca523dc82aa, Linux 49b326ce8a686428d8cbb82ed74fc88ed3f95a51. No fix listed yet: follow the vendor advisory.

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

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/17b96b5c19bec791b433890549e44ca523dc82aa>
- other: <https://git.kernel.org/stable/c/49b326ce8a686428d8cbb82ed74fc88ed3f95a51>
- other: <https://git.kernel.org/stable/c/f57c2164d082a36d177ab7fbf54c18970df89c22>
- other: <https://git.kernel.org/stable/c/b71ff206707855ce73c04794c76f7b678b2d4f72>
- other: <https://git.kernel.org/stable/c/c8f71b49ee4d28930c4a6798d1969fa91dc4ef3e>

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

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