# CVE-2023-54251: net/sched: taprio: Limit TCA\_TAPRIO\_ATTR\_SCHED\_CYCLE\_TIME to INT\_MAX.

> 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.26% (percentile 11, 2026-11-28)
- **Published:** 2025-12-30T12:15:48.145Z
- **Modified:** 2026-06-17T06:47:05.797Z

## Who should check

- Anyone running Linux \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< f04f6d9b3b060f7e11219a65a76da65f1489e391; \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< 0b45af982a4df0b14fb8669ee2a871cfdfa6a39c; \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< 57b3fe08ae06ef11af007b4a182629b12a961e30; \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< e739718444f7bf2fa3d70d101761ad83056ca628
- Anyone running Linux 5.3

## Description

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

net/sched: taprio: Limit TCA\_TAPRIO\_ATTR\_SCHED\_CYCLE\_TIME to INT\_MAX.

syzkaller found zero division error \[0\] in div\_s64\_rem() called from
get\_cycle\_time\_elapsed(), where sched-\>cycle\_time is the divisor.

We have tests in parse\_taprio\_schedule() so that cycle\_time will never
be 0, and actually cycle\_time is not 0 in get\_cycle\_time\_elapsed().

The problem is that the types of divisor are different; cycle\_time is
s64, but the argument of div\_s64\_rem() is s32.

syzkaller fed this input and 0x100000000 is cast to s32 to be 0.

  @TCA\_TAPRIO\_ATTR\_SCHED\_CYCLE\_TIME={0xc, 0x8, 0x100000000}

We use s64 for cycle\_time to cast it to ktime\_t, so let's keep it and
set max for cycle\_time.

While at it, we prevent overflow in setup\_txtime() and add another
test in parse\_taprio\_schedule() to check if cycle\_time overflows.

Also, we add a new tdc test case for this issue.

\[0\]:
divide error: 0000 \[\#1\] PREEMPT SMP KASAN NOPTI
CPU: 1 PID: 103 Comm: kworker/1:3 Not tainted 6.5.0-rc1-00330-g60cc1f7d0605 \#3
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
Workqueue: ipv6\_addrconf addrconf\_dad\_work
RIP: 0010:div\_s64\_rem include/linux/math64.h:42 \[inline\]
RIP: 0010:get\_cycle\_time\_elapsed net/sched/sch\_taprio.c:223 \[inline\]
RIP: 0010:find\_entry\_to\_transmit+0x252/0x7e0 net/sched/sch\_taprio.c:344
Code: 3c 02 00 0f 85 5e 05 00 00 48 8b 4c 24 08 4d 8b bd 40 01 00 00 48 8b 7c 24 48 48 89 c8 4c 29 f8 48 63 f7 48 99 48 89 74 24 70 \<48\> f7 fe 48 29 d1 48 8d 04 0f 49 89 cc 48 89 44 24 20 49 8d 85 10
RSP: 0018:ffffc90000acf260 EFLAGS: 00010206
RAX: 177450e0347560cf RBX: 0000000000000000 RCX: 177450e0347560cf
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000100000000
RBP: 0000000000000056 R08: 0000000000000000 R09: ffffed10020a0934
R10: ffff8880105049a7 R11: ffff88806cf3a520 R12: ffff888010504800
R13: ffff88800c00d800 R14: ffff8880105049a0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0edf84f0e8 CR3: 000000000d73c002 CR4: 0000000000770ee0
PKRU: 55555554
Call Trace:
 \<TASK\>
 get\_packet\_txtime net/sched/sch\_taprio.c:508 \[inline\]
 taprio\_enqueue\_one+0x900/0xff0 net/sched/sch\_taprio.c:577
 taprio\_enqueue+0x378/0xae0 net/sched/sch\_taprio.c:658
 dev\_qdisc\_enqueue+0x46/0x170 net/core/dev.c:3732
 \_\_dev\_xmit\_skb net/core/dev.c:3821 \[inline\]
 \_\_dev\_queue\_xmit+0x1b2f/0x3000 net/core/dev.c:4169
 dev\_queue\_xmit include/linux/netdevice.h:3088 \[inline\]
 neigh\_resolve\_output net/core/neighbour.c:1552 \[inline\]
 neigh\_resolve\_output+0x4a7/0x780 net/core/neighbour.c:1532
 neigh\_output include/net/neighbour.h:544 \[inline\]
 ip6\_finish\_output2+0x924/0x17d0 net/ipv6/ip6\_output.c:135
 \_\_ip6\_finish\_output+0x620/0xaa0 net/ipv6/ip6\_output.c:196
 ip6\_finish\_output net/ipv6/ip6\_output.c:207 \[inline\]
 NF\_HOOK\_COND include/linux/netfilter.h:292 \[inline\]
 ip6\_output+0x206/0x410 net/ipv6/ip6\_output.c:228
 dst\_output include/net/dst.h:458 \[inline\]
 NF\_HOOK.constprop.0+0xea/0x260 include/linux/netfilter.h:303
 ndisc\_send\_skb+0x872/0xe80 net/ipv6/ndisc.c:508
 ndisc\_send\_ns+0xb5/0x130 net/ipv6/ndisc.c:666
 addrconf\_dad\_work+0xc14/0x13f0 net/ipv6/addrconf.c:4175
 process\_one\_work+0x92c/0x13a0 kernel/workqueue.c:2597
 worker\_thread+0x60f/0x1240 kernel/workqueue.c:2748
 kthread+0x2fe/0x3f0 kernel/kthread.c:389
 ret\_from\_fork+0x2c/0x50 arch/x86/entry/entry\_64.S:308
 \</TASK\>
Modules linked in:

## Affected and fixed versions

- Linux: \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< f04f6d9b3b060f7e11219a65a76da65f1489e391; \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< 0b45af982a4df0b14fb8669ee2a871cfdfa6a39c; \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< 57b3fe08ae06ef11af007b4a182629b12a961e30; \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< e739718444f7bf2fa3d70d101761ad83056ca628 (cvelist)
- Linux: 5.3 (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-54251. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54251.md
Affected: Linux >= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, < f04f6d9b3b060f7e11219a65a76da65f1489e391; >= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, < 0b45af982a4df0b14fb8669ee2a871cfdfa6a39c; >= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, < 57b3fe08ae06ef11af007b4a182629b12a961e30; >= 4cfd5779bd6efe8c76b4494…
Fixed in: Linux 0b45af982a4df0b14fb8669ee2a871cfdfa6a39c, Linux 57b3fe08ae06ef11af007b4a182629b12a961e30

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< f04f6d9b3b060f7e11219a65a76da65f1489e391; \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< 0b45af982a4df0b14fb8669ee2a871cfdfa6a39c; \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< 57b3fe08ae06ef11af007b4a182629b12a961e30; \>= 4cfd5779bd6efe8c76b4494aec63a063be0d2ff2, \< e739718444f7bf2fa3d70d101761ad83056ca628; Linux 5.3.

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

Yes. Fixed in Linux 0b45af982a4df0b14fb8669ee2a871cfdfa6a39c, Linux 57b3fe08ae06ef11af007b4a182629b12a961e30. No fix listed yet: follow the vendor advisory.

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

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/f04f6d9b3b060f7e11219a65a76da65f1489e391>
- other: <https://git.kernel.org/stable/c/0b45af982a4df0b14fb8669ee2a871cfdfa6a39c>
- other: <https://git.kernel.org/stable/c/57b3fe08ae06ef11af007b4a182629b12a961e30>
- other: <https://git.kernel.org/stable/c/e739718444f7bf2fa3d70d101761ad83056ca628>

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

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