<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 29 Sep 2026 21:41:13 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-54251 — net/sched: taprio: Limit TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME to INT_MAX.</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-54251</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;net/sched: taprio: Limit TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME to INT_MAX.&lt;/p&gt;
&lt;p&gt;syzkaller found zero division error [0] in div_s64_rem() called from
get_cycle_time_elapsed(), where sched-&amp;gt;cycle_time is the divisor.&lt;/p&gt;
&lt;p&gt;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().&lt;/p&gt;
&lt;p&gt;The problem is that the types of divisor are different; cycle_time is
s64, but the argument of div_s64_rem() is s32.&lt;/p&gt;
&lt;p&gt;syzkaller fed this input and 0x100000000 is cast to s32 to be 0.&lt;/p&gt;
&lt;p&gt;@TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME={0xc, 0x8, 0x100000000}&lt;/p&gt;
&lt;p&gt;We use s64 for cycle_time to cast it to ktime_t, so let&amp;#39;s keep it and
set max for cycle_time.&lt;/p&gt;
&lt;p&gt;While at it, we prevent overflow in setup_txtime() and add another
test in parse_taprio_schedule() to check if cycle_time overflows.&lt;/p&gt;
&lt;p&gt;Also, we add a new tdc test case for this issue.&lt;/p&gt;
&lt;p&gt;[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 4…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;net/sched: taprio: Limit TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME to INT_MAX.&lt;/p&gt;
&lt;p&gt;syzkaller found zero division error [0] in div_s64_rem() called from
get_cycle_time_elapsed(), where sched-&amp;gt;cycle_time is the divisor.&lt;/p&gt;
&lt;p&gt;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().&lt;/p&gt;
&lt;p&gt;The problem is that the types of divisor are different; cycle_time is
s64, but the argument of div_s64_rem() is s32.&lt;/p&gt;
&lt;p&gt;syzkaller fed this input and 0x100000000 is cast to s32 to be 0.&lt;/p&gt;
&lt;p&gt;@TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME={0xc, 0x8, 0x100000000}&lt;/p&gt;
&lt;p&gt;We use s64 for cycle_time to cast it to ktime_t, so let&amp;#39;s keep it and
set max for cycle_time.&lt;/p&gt;
&lt;p&gt;While at it, we prevent overflow in setup_txtime() and add another
test in parse_taprio_schedule() to check if cycle_time overflows.&lt;/p&gt;
&lt;p&gt;Also, we add a new tdc test case for this issue.&lt;/p&gt;
&lt;p&gt;[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 4…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-54251</guid>
    </item>
  </channel>
</rss>
