Bug 2298079 (CVE-2024-41008) - CVE-2024-41008 kernel: drm/amdgpu: change vm->task_info handling
Summary: CVE-2024-41008 kernel: drm/amdgpu: change vm->task_info handling
Keywords:
Status: NEW
Alias: CVE-2024-41008
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2298381
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-16 08:20 UTC by OSIDB Bzimport
Modified: 2024-12-04 00:46 UTC (History)
4 users (show)

Fixed In Version: kernel 6.9
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:7043 0 None None None 2024-09-24 09:43:14 UTC
Red Hat Product Errata RHBA-2024:7198 0 None None None 2024-09-26 09:48:55 UTC
Red Hat Product Errata RHBA-2024:7236 0 None None None 2024-09-26 14:33:27 UTC
Red Hat Product Errata RHBA-2024:7637 0 None None None 2024-10-03 14:46:02 UTC
Red Hat Product Errata RHBA-2024:8227 0 None None None 2024-10-17 06:46:05 UTC
Red Hat Product Errata RHSA-2024:10771 0 None None None 2024-12-04 00:46:04 UTC
Red Hat Product Errata RHSA-2024:7000 0 None None None 2024-09-24 02:34:43 UTC
Red Hat Product Errata RHSA-2024:7001 0 None None None 2024-09-24 00:39:26 UTC
Red Hat Product Errata RHSA-2024:9315 0 None None None 2024-11-12 09:36:29 UTC

Description OSIDB Bzimport 2024-07-16 08:20:29 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: change vm->task_info handling

This patch changes the handling and lifecycle of vm->task_info object.
The major changes are:
- vm->task_info is a dynamically allocated ptr now, and its uasge is
  reference counted.
- introducing two new helper funcs for task_info lifecycle management
    - amdgpu_vm_get_task_info: reference counts up task_info before
      returning this info
    - amdgpu_vm_put_task_info: reference counts down task_info
- last put to task_info() frees task_info from the vm.

This patch also does logistical changes required for existing usage
of vm->task_info.

V2: Do not block all the prints when task_info not found (Felix)

V3: Fixed review comments from Felix
   - Fix wrong indentation
   - No debug message for -ENOMEM
   - Add NULL check for task_info
   - Do not duplicate the debug messages (ti vs no ti)
   - Get first reference of task_info in vm_init(), put last
     in vm_fini()

V4: Fixed review comments from Felix
   - fix double reference increment in create_task_info
   - change amdgpu_vm_get_task_info_pasid
   - additional changes in amdgpu_gem.c while porting

Comment 2 Robb Gatica 2024-07-17 00:55:39 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2298381]

Comment 14 errata-xmlrpc 2024-09-24 00:39:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:7001 https://access.redhat.com/errata/RHSA-2024:7001

Comment 15 errata-xmlrpc 2024-09-24 02:34:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:7000 https://access.redhat.com/errata/RHSA-2024:7000

Comment 16 errata-xmlrpc 2024-11-12 09:36:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:9315 https://access.redhat.com/errata/RHSA-2024:9315

Comment 18 errata-xmlrpc 2024-12-04 00:46:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2024:10771 https://access.redhat.com/errata/RHSA-2024:10771


Note You need to log in before you can comment on or make changes to this bug.