Bug 2347876 (CVE-2022-49359) - CVE-2022-49359 kernel: drm/panfrost: Job should reference MMU not file_priv
Summary: CVE-2022-49359 kernel: drm/panfrost: Job should reference MMU not file_priv
Keywords:
Status: NEW
Alias: CVE-2022-49359
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:09 UTC by OSIDB Bzimport
Modified: 2025-02-26 15:22 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:09:49 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/panfrost: Job should reference MMU not file_priv

For a while now it's been allowed for a MMU context to outlive it's
corresponding panfrost_priv, however the job structure still references
panfrost_priv to get hold of the MMU context. If panfrost_priv has been
freed this is a use-after-free which I've been able to trigger resulting
in a splat.

To fix this, drop the reference to panfrost_priv in the job structure
and add a direct reference to the MMU structure which is what's actually
needed.

Comment 1 Avinash Hanwate 2025-02-26 10:59:02 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022644-CVE-2022-49359-f054@gregkh/T

Comment 2 Avinash Hanwate 2025-02-26 15:22:10 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022644-CVE-2022-49359-f054@gregkh/T


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