Bug 2265801 (CVE-2024-26598) - CVE-2024-26598 kernel: kvm: Avoid potential UAF in LPI translation cache
Summary: CVE-2024-26598 kernel: kvm: Avoid potential UAF in LPI translation cache
Keywords:
Status: NEW
Alias: CVE-2024-26598
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2265813
Blocks: 2265790
TreeView+ depends on / blocked
 
Reported: 2024-02-24 11:20 UTC by Patrick Del Bello
Modified: 2025-06-03 17:25 UTC (History)
51 users (show)

Fixed In Version: kernel 6.8-rc1
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:3854 0 None None None 2024-06-12 01:40:28 UTC
Red Hat Product Errata RHSA-2024:3855 0 None None None 2024-06-12 01:53:49 UTC
Red Hat Product Errata RHSA-2024:4415 0 None None None 2024-07-09 09:21:08 UTC
Red Hat Product Errata RHSA-2024:4740 0 None None None 2024-07-23 15:26:17 UTC
Red Hat Product Errata RHSA-2024:8161 0 None None None 2024-10-16 00:30:59 UTC

Description Patrick Del Bello 2024-02-24 11:20:34 UTC
There is a potential UAF scenario in the case of an LPI translation
cache hit racing with an operation that invalidates the cache, such
as a DISCARD ITS command. The root of the problem is that
vgic_its_check_cache() does not elevate the refcount on the vgic_irq
before dropping the lock that serializes refcount changes.

Have vgic_its_check_cache() raise the refcount on the returned vgic_irq
and add the corresponding decrement after queueing the interrupt.

Comment 1 Patrick Del Bello 2024-02-24 11:26:03 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2265813]

Comment 4 Justin M. Forbes 2024-02-26 23:57:28 UTC
This was fixed for Fedora with the 6.6.14 stable kernel update.

Comment 11 Alex 2024-06-09 15:17:01 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-26598 is: CHECK	Maybe valid. Check manually. with impact MODERATE (that is approximation based on flags VIRT SIMPLEFIX UAF  ; these flags parsed automatically based on patche data). Such automatic check happens only for Low/Moderates (and only when not from reporter, but parsing already existing CVE). Highs always checked manually (I check it myself and then we check it again in Remediation team). In rare cases some of the Moderates could be increased to High later.

Comment 12 errata-xmlrpc 2024-06-12 01:40:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

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

Comment 13 errata-xmlrpc 2024-06-12 01:53:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

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

Comment 16 errata-xmlrpc 2024-07-09 09:21:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

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

Comment 17 errata-xmlrpc 2024-07-23 15:26:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

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

Comment 18 errata-xmlrpc 2024-10-16 00:30:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

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


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