# CVE-2024-43893: serial: core: check uartclk for zero to avoid divide by zero

> 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.36% (percentile 22, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2024-08-26T10:10:48.046Z
- **Modified:** 2026-10-15T01:18:49.490Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3bbd90fca824e6fd61fb20f6dd2b0fa5f8b14bba; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 55b2a5d331a6ceb1c4372945fdb77181265ba24f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 52b138f1021113e593ee6ad258ce08fe90693a9e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9196e42a3b8eeff1707e6ef769112b4b6096be49; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e13ba3fe5ee070f8a9dab60029d52b1f61da5051; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e3ad503876283ac3fcca922a1bf243ef9eb0b0e2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 68dc02f319b9ee54dc23caba742a5c754d1cccc8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6eabce6608d6f3440f4c03aa3d3ef50a47a3d193
- Anyone running Linux 2.6.12

## Description

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

serial: core: check uartclk for zero to avoid divide by zero

Calling ioctl TIOCSSERIAL with an invalid baud\_base can
result in uartclk being zero, which will result in a
divide by zero error in uart\_get\_divisor(). The check for
uartclk being zero in uart\_set\_info() needs to be done
before other settings are made as subsequent calls to
ioctl TIOCSSERIAL for the same port would be impacted if
the uartclk check was done where uartclk gets set.

Oops: divide error: 0000  PREEMPT SMP KASAN PTI
RIP: 0010:uart\_get\_divisor (drivers/tty/serial/serial\_core.c:580)
Call Trace:
 \<TASK\>
serial8250\_get\_divisor (drivers/tty/serial/8250/8250\_port.c:2576
    drivers/tty/serial/8250/8250\_port.c:2589)
serial8250\_do\_set\_termios (drivers/tty/serial/8250/8250\_port.c:502
    drivers/tty/serial/8250/8250\_port.c:2741)
serial8250\_set\_termios (drivers/tty/serial/8250/8250\_port.c:2862)
uart\_change\_line\_settings (./include/linux/spinlock.h:376
    ./include/linux/serial\_core.h:608 drivers/tty/serial/serial\_core.c:222)
uart\_port\_startup (drivers/tty/serial/serial\_core.c:342)
uart\_startup (drivers/tty/serial/serial\_core.c:368)
uart\_set\_info (drivers/tty/serial/serial\_core.c:1034)
uart\_set\_info\_user (drivers/tty/serial/serial\_core.c:1059)
tty\_set\_serial (drivers/tty/tty\_io.c:2637)
tty\_ioctl (drivers/tty/tty\_io.c:2647 drivers/tty/tty\_io.c:2791)
\_\_x64\_sys\_ioctl (fs/ioctl.c:52 fs/ioctl.c:907
    fs/ioctl.c:893 fs/ioctl.c:893)
do\_syscall\_64 (arch/x86/entry/common.c:52
    (discriminator 1) arch/x86/entry/common.c:83 (discriminator 1))
entry\_SYSCALL\_64\_after\_hwframe (arch/x86/entry/entry\_64.S:130)

Rule: add

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3bbd90fca824e6fd61fb20f6dd2b0fa5f8b14bba; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 55b2a5d331a6ceb1c4372945fdb77181265ba24f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 52b138f1021113e593ee6ad258ce08fe90693a9e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9196e42a3b8eeff1707e6ef769112b4b6096be49; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e13ba3fe5ee070f8a9dab60029d52b1f61da5051; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e3ad503876283ac3fcca922a1bf243ef9eb0b0e2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 68dc02f319b9ee54dc23caba742a5c754d1cccc8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6eabce6608d6f3440f4c03aa3d3ef50a47a3d193 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 6eabce6608d6f3440f4c03aa3d3ef50a47a3d193 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-43893.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 3bbd90fca824e6fd61fb20f6dd2b0fa5f8b14bba; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 55b2a5d331a6ceb1c4372945fdb77181265ba24f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 52b138f1021113e593ee6ad258ce08fe90693a9e; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 3bbd90fca824e6fd61fb20f6dd2b0fa5f8b14bba, Linux 55b2a5d331a6ceb1c4372945fdb77181265ba24f, Linux 52b138f1021113e593ee6ad258ce08fe90693a9e, Linux 9196e42a3b8eeff1707e6ef769112b4b6096be49, Linux 68dc02f319b9ee54dc23caba742a5c754d1cccc8, Linux 6eabce6608d6f3440f4c03aa3d3ef50a47a3d193

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-2024-43893 being exploited?

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

### How serious is CVE-2024-43893?

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

### Which versions are affected by CVE-2024-43893?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3bbd90fca824e6fd61fb20f6dd2b0fa5f8b14bba; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 55b2a5d331a6ceb1c4372945fdb77181265ba24f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 52b138f1021113e593ee6ad258ce08fe90693a9e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9196e42a3b8eeff1707e6ef769112b4b6096be49; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e13ba3fe5ee070f8a9dab60029d52b1f61da5051; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e3ad503876283ac3fcca922a1bf243ef9eb0b0e2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 68dc02f319b9ee54dc23caba742a5c754d1cccc8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6eabce6608d6f3440f4c03aa3d3ef50a47a3d193; Linux 2.6.12.

### Is there a fix for CVE-2024-43893?

Yes. Fixed in Linux 3bbd90fca824e6fd61fb20f6dd2b0fa5f8b14bba, Linux 55b2a5d331a6ceb1c4372945fdb77181265ba24f, Linux 52b138f1021113e593ee6ad258ce08fe90693a9e, Linux 9196e42a3b8eeff1707e6ef769112b4b6096be49, Linux 68dc02f319b9ee54dc23caba742a5c754d1cccc8, Linux 6eabce6608d6f3440f4c03aa3d3ef50a47a3d193. Upgrade Linux to 6eabce6608d6f3440f4c03aa3d3ef50a47a3d193 or later.

### How do I check if I'm affected by CVE-2024-43893?

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/3bbd90fca824e6fd61fb20f6dd2b0fa5f8b14bba>
- patch: <https://git.kernel.org/stable/c/55b2a5d331a6ceb1c4372945fdb77181265ba24f>
- patch: <https://git.kernel.org/stable/c/52b138f1021113e593ee6ad258ce08fe90693a9e>
- patch: <https://git.kernel.org/stable/c/9196e42a3b8eeff1707e6ef769112b4b6096be49>
- patch: <https://git.kernel.org/stable/c/e13ba3fe5ee070f8a9dab60029d52b1f61da5051>
- patch: <https://git.kernel.org/stable/c/e3ad503876283ac3fcca922a1bf243ef9eb0b0e2>
- patch: <https://git.kernel.org/stable/c/68dc02f319b9ee54dc23caba742a5c754d1cccc8>
- patch: <https://git.kernel.org/stable/c/6eabce6608d6f3440f4c03aa3d3ef50a47a3d193>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.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-2024-43893>

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