UBUNTU-CVE-2026-98919: Medium severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/xe: harden adjustidledly() against divide-by-zero and overflow adjustidledly() has several corner-case issues flagged during review: 1. If xegtclockinit() failed to recognise the crystal clock, gt->info.timestampbase is 0, which makes idledlyunitsps also 0. The subsequent DIVROUNDCLOSEST(..., idledlyunitsps) is then a divide-by-zero and panics the kernel. 2. The tick-to-ns conversions are done in u32: idledly idledlyunitsps, (maxcnt - 1) 1000 Both overflow u32 before DIVROUNDCLOSEST() sees them. 3. If IDLEWAITTIME reads back as 0, maxcnt evaluates to 0 and the maxcnt - 1 clamp wraps to 0xFFFFFFFF in u32. 4. The register only stores whole ticks, so the clamped ns value has to be converted to ticks and back. DIVROUNDCLOSEST() can round that conversion up past maxcnt: maxcnt = 640 ns, one tick = 666664 ps clamp: maxcnt - 1 = 639 ns ns -> ticks: 639000 / 666664 = 0.958 -> rounds to 1 tick tick -> ns: 1 666664 / 1000 = 667 ns 667 ns is programmed into RINGIDLEDLY, but 667 >= maxcnt (640), so xegtWARNON() fires again on every subsequent init. Return early if timestampbase is 0 (the unknown-crystal path). Do the conversions in u64 via the ULL() helpers so they cannot wrap. Clamp with a floor (DIVROUNDDOWNULL) so the programmed delay stays strictly below maxcnt, and guard the maxcnt == 0 case with a zero delay while still writing RINGIDLEDLY so INHIBITSWITCHUNTILPREEMPTED is cleared. v2: Drop the redundant warn on the timestampbase == 0 path; xegtclockinit() already warns on an unrecognised crystal clock. Keep the early return to avoid the divide-by-zero. - Vinay v3: Field-mask the RINGIDLEDLY write with REGFIELDPREP(IDLEDELAY, ...) instead of writing the raw tick count, which could clobber INHIBITSWITCHUNTILPREEMPTED and reserved bits. Split the inhibit-switch clear from the maxcnt clamp so a set inhibit bit no longer forces a needless delay overwrite when the delay itself is already valid. Use gttoxe(gt) instead of gttoxe(hwe->gt). (cherry picked from commit d864065ea25e9d12897c175de9176ce46677e176)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch d864065ea25e9d12897c175de9176ce46677e176
Event History
Frequently Asked Questions
What operational symptoms can this issue cause?
The issue can cause a kernel panic when the timestamp base is zero and the code divides by zero. It can also produce repeated xe_gt_WARN_ON() warnings during subsequent initialization when a rounded delay exceeds the register limit.
What conditions trigger the vulnerable paths?
The described corner cases include failure to recognize the crystal clock, which leaves timestamp_base at zero; an IDLE_WAIT_TIME readback of zero; and delay or counter conversions that overflow 32-bit arithmetic. Rounding during nanosecond-to-tick conversion can also program a value at or above the maximum count.
Which Ubuntu kernel packages are identified as affected?
The listed packages are ubuntu/linux-riscv, ubuntu/linux-realtime, ubuntu/linux-hwe-edge, ubuntu/linux-azure, ubuntu/linux-gcp, ubuntu/linux-azure-fde, ubuntu/linux-gke, and ubuntu/linux-aws-5.0.