If we're given a malformed entity in drm_sched_entity_init()--shouldn't happen, but we verify--with out-of-bounds priority value, we set it to an allowed value. Fix the expression which sets this limit.
Created kernel tracking bugs for this issue: Affects: fedora-all [bug 2265808]
Issue introduced in 6.7 with commit 56e449603f0ac5 and fixed in 6.7.2 with commit 1470d173925d Issue introduced in 6.7 with commit 56e449603f0ac5 and fixed in 6.8-rc1 with commit 2bbe6ab2be53
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2023-52461 is: SKIP The Fixes patch not applied yet, so unlikely that actual: 56e449603f0ac580700621a356d35d5716a62ce5 YES NO NO unknown (where first YES/NO value means if related sources built).