Bug 2134591 - kernel: Double-free in split_2MB_gtt_entry
Summary: kernel: Double-free in split_2MB_gtt_entry
Keywords:
Status: CLOSED DUPLICATE of bug 2137979
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2132857 2134596 2134597 2134598 2134599 2138001 2138003 2138005
Blocks: 2133476
TreeView+ depends on / blocked
 
Reported: 2022-10-13 17:14 UTC by Rohit Keshri
Modified: 2023-12-07 15:14 UTC (History)
51 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-04 16:08:54 UTC
Embargoed:


Attachments (Terms of Use)

Description Rohit Keshri 2022-10-13 17:14:04 UTC
There is a double-free security bug in split_2MB_gtt_entry.

Here is a calling chain : ppgtt_populate_spt->ppgtt_populate_shadow_entry->split_2MB_gtt_entry. If intel_gvt_dma_map_guest_page failed, it will call  ppgtt_invalidate_spt, which will finally call ppgtt_free_spt and kfree(spt). But the caller does not notice that, and it will call ppgtt_free_spt again in the error path.

Reference:

https://bugzilla.redhat.com/show_bug.cgi?id=2132857

Comment 2 Rohit Keshri 2022-10-13 17:32:17 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2134596]

Comment 10 Rohit Keshri 2023-04-04 16:08:54 UTC

*** This bug has been marked as a duplicate of bug 2137979 ***


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