Bug 1225847 (CVE-2024-36944)

Summary: VUL-0: CVE-2024-36944: kernel: reapply "drm/qxl: simplify qxl_fence_wait"
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: IN_PROGRESS --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: camila.matos, vasant.karasulli
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/408233/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-36944:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-06-03 14:17:34 UTC
In the Linux kernel, the following vulnerability has been resolved:

Reapply "drm/qxl: simplify qxl_fence_wait"

This reverts commit 07ed11afb68d94eadd4ffc082b97c2331307c5ea.

Stephen Rostedt reports:
 "I went to run my tests on my VMs and the tests hung on boot up.
  Unfortunately, the most I ever got out was:

  [   93.607888] Testing event system initcall: OK
  [   93.667730] Running tests on all trace events:
  [   93.669757] Testing all events: OK
  [   95.631064] ------------[ cut here ]------------
  Timed out after 60 seconds"

and further debugging points to a possible circular locking dependency
between the console_owner locking and the worker pool locking.

Reverting the commit allows Steve's VM to boot to completion again.

[ This may obviously result in the "[TTM] Buffer eviction failed"
  messages again, which was the reason for that original revert. But at
  this point this seems preferable to a non-booting system... ]

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-36944
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-36944.mbox
https://git.kernel.org/stable/c/4a89ac4b0921c4ea21eb1b4cf3a469a91bacfcea
https://git.kernel.org/stable/c/b548c53bc3ab83dc6fc86c8e840f013b2032267a
https://git.kernel.org/stable/c/148ed8b4d64f94ab079c8f0d88c3f444db97ba97
https://git.kernel.org/stable/c/3dfe35d8683daf9ba69278643efbabe40000bbf6
https://git.kernel.org/stable/c/3628e0383dd349f02f882e612ab6184e4bb3dc10
https://www.cve.org/CVERecord?id=CVE-2024-36944
https://bugzilla.redhat.com/show_bug.cgi?id=2284468