{"id":"CVE-2026-98919","revision":null,"records":[{"revision":"3c7b06c6875246bdb08411c9f75747cc","observedAt":"2026-10-23T16:01:20.601+00:00","statement":{"source":"cve-program","id":"CVE-2026-98919","aliases":[],"title":"drm/xe: harden adjust_idledly() against divide-by-zero and overflow","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: harden adjust_idledly() against divide-by-zero and overflow\n\nadjust_idledly() has several corner-case issues flagged during review:\n\n  1. If xe_gt_clock_init() failed to recognise the crystal clock,\n     gt->info.timestamp_base is 0, which makes idledly_units_ps also 0.\n     The subsequent DIV_ROUND_CLOSEST(..., idledly_units_ps) is then a\n     divide-by-zero and panics the kernel.\n\n  2. The tick-to-ns conversions are done in u32:\n        idledly * idledly_units_ps, (maxcnt - 1) * 1000\n     Both overflow u32 before DIV_ROUND_CLOSEST() sees them.\n\n  3. If IDLE_WAIT_TIME reads back as 0, maxcnt evaluates to 0 and\n     the maxcnt - 1 clamp wraps to 0xFFFFFFFF in u32.\n\n  4. The register only stores whole ticks, so the clamped ns value has\n     to be converted to ticks and back. DIV_ROUND_CLOSEST() can round\n     that conversion up past maxcnt:\n\n       maxcnt = 640 ns, one tick = 666664 ps\n\n       clamp:        maxcnt - 1        = 639 ns\n       ns -> ticks:  639000 / 666664   = 0.958 -> rounds to 1 tick\n       tick -> ns:    1 * 666664 / 1000 = 667 ns\n\n     667 ns is programmed into RING_IDLEDLY, but 667 >= maxcnt (640),\n     so xe_gt_WARN_ON() fires again on every subsequent init.\n\nReturn early if timestamp_base is 0 (the unknown-crystal path).\nDo the conversions in u64 via the *_ULL() helpers so they cannot wrap.\nClamp with a floor (DIV_ROUND_DOWN_ULL) so the programmed delay stays\nstrictly below maxcnt, and guard the maxcnt == 0 case with a zero delay\nwhile still writing RING_IDLEDLY so INHIBIT_SWITCH_UNTIL_PREEMPTED is\ncleared.\n\nv2: Drop the redundant warn on the timestamp_base == 0 path;\n    xe_gt_clock_init() already warns on an unrecognised crystal clock.\n    Keep the early return to avoid the divide-by-zero. - Vinay\n\nv3: Field-mask the RING_IDLEDLY write with REG_FIELD_PREP(IDLE_DELAY, ...)\n    instead of writing the raw tick count, which could clobber\n    INHIBIT_SWITCH_UNTIL_PREEMPTED and reserved bits. Split the\n    inhibit-switch clear from the maxcnt clamp so a set inhibit bit no\n    longer forces a needless delay overwrite when the delay itself is\n    already valid. Use gt_to_xe(gt) instead of gt_to_xe(hwe->gt).\n\n(cherry picked from commit d864065ea25e9d12897c175de9176ce46677e176)","state":0,"publishedAt":"2026-10-23T12:01:55.092+00:00","modifiedAt":"2026-10-23T12:05:08.723+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/xe/xe_hw_engine.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"d2de4410a88ffc6053300d03041cc73b8c85dbaf\",\n                            \"lessThan\": \"2bcbfc5e7bfa9cc76818c54db698da5bdc13d9ff\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d2de4410a88ffc6053300d03041cc73b8c85dbaf\",\n                            \"lessThan\": \"531d4cd03118224022dc21ae25af052ce2a9e267\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d2de4410a88ffc6053300d03041cc73b8c85dbaf\",\n                            \"lessThan\": \"90f467577ebc28c5bc4ba2f0f1b83a4419fb0740\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/xe/xe_hw_engine.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.15\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.15\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.55\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.9\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/2bcbfc5e7bfa9cc76818c54db698da5bdc13d9ff","https://git.kernel.org/stable/c/531d4cd03118224022dc21ae25af052ce2a9e267","https://git.kernel.org/stable/c/90f467577ebc28c5bc4ba2f0f1b83a4419fb0740"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98919","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98919","identifiers":["CVE-2026-98919"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-28T00:45:55.9122237+00:00","complete":true,"records":1760,"lastAttemptAt":"2026-10-28T00:45:55.9122237+00:00","lastSuccessAt":"2026-10-28T00:45:56.1014651+00:00","error":null,"lastVerifiedAt":"2026-10-28T00:45:56.1015137+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-187d2b72c94ceb8c4417f1032ec3109a3a3a7b730abadb561d8cdd2a96e04d27-6f8284a2c5d6f7a90df031c58649fd65623df7f48801e0993675b394053cb25f","complete":true,"records":415414,"lastAttemptAt":"2026-10-28T00:45:55.1092325+00:00","lastSuccessAt":"2026-10-27T23:46:16.4250984+00:00","error":"InvalidOperationException","lastVerifiedAt":"2026-10-27T23:46:16.5712996+00:00","snapshotPublishedAt":"2026-10-27T23:26:27+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-6230554423504cc4b4e4e9e3ba3ff4e0","complete":false,"records":8208,"lastAttemptAt":"2026-10-28T00:57:26.8857818+00:00","lastSuccessAt":"2026-10-28T00:57:26.882+00:00","error":"10 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-28T00:57:26.882+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":3490,"expectedIdentifiers":13514,"failedIdentifiers":10},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-28T00:45:55.9122237+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-28T00:45:55.9122237+00:00","lastSuccessAt":"2026-10-28T00:45:56.1026076+00:00","error":null,"lastVerifiedAt":"2026-10-28T00:45:56.1026079+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8d16a738328646698f9217d8ea11893c","complete":true,"records":13449,"lastAttemptAt":"2026-10-28T00:45:58.7534113+00:00","lastSuccessAt":"2026-10-27T22:48:29.491+00:00","error":null,"lastVerifiedAt":"2026-10-27T22:48:29.491+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13514,"expectedIdentifiers":13514,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-f7cb12508d9e6a348c8a60f772ed85529cc80cd2ff853da1099b57754b20e943","complete":true,"records":9790,"lastAttemptAt":"2026-10-28T00:45:55.7675169+00:00","lastSuccessAt":"2026-10-27T21:49:03.9756799+00:00","error":null,"lastVerifiedAt":"2026-10-28T00:45:55.7675169+00:00","snapshotPublishedAt":"2026-10-27T21:48:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-72e5e79de0026dd0562d40734074a2236a06886643d67182b8381eaee757dbf7","complete":true,"records":1966,"lastAttemptAt":"2026-10-28T00:45:55.1714614+00:00","lastSuccessAt":"2026-10-27T21:46:38.0277323+00:00","error":null,"lastVerifiedAt":"2026-10-28T00:45:55.1714614+00:00","snapshotPublishedAt":"2026-10-27T21:18:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3a5b306d60fc44677a03a8afc99d87e6c5402770ef68d560f94a8c3ad3802b75","complete":true,"records":3001,"lastAttemptAt":"2026-10-28T00:45:55.7805737+00:00","lastSuccessAt":"2026-10-27T16:45:49.0050993+00:00","error":null,"lastVerifiedAt":"2026-10-28T00:45:55.7805737+00:00","snapshotPublishedAt":"2026-10-27T16:33:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-e94506f133c8bd17d5821d183faeaf30a6e2cec4fbbffe29e073cb827f4fb210","complete":true,"records":230853,"lastAttemptAt":"2026-10-28T00:45:55.6569118+00:00","lastSuccessAt":"2026-10-27T23:49:10.0217006+00:00","error":null,"lastVerifiedAt":"2026-10-28T00:45:55.6569118+00:00","snapshotPublishedAt":"2026-10-27T23:33:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}