Bug 2137979 (CVE-2022-3707)

Summary: CVE-2022-3707 kernel: Double-free in split_2MB_gtt_entry when function intel_gvt_dma_map_guest_page failed
Product: [Other] Security Response Reporter: Alex <allarkin>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, bhu, brdeoliv, bskeggs, chwhite, crwood, ddepaula, debarbos, dvlasenk, ezulian, hdegoede, hkrzesin, hpa, jarod, jarodwilson, jburrell, jfalempe, jfaracco, jferlan, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jshortt, jstancek, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lleshchi, lzampier, masami256, mchehab, ndegraef, nmurray, ptalbert, qzhao, rkeshri, rvrbovsk, scweaver, steve.beattie, steved, tyberry, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Linux kernel 6.1-rc3 Doc Type: If docs needed, set a value
Doc Text:
A double-free memory flaw was found in the Linux kernel. The Intel GVT-g graphics driver triggers VGA card system resource overload, causing a fail in the intel_gvt_dma_map_guest_page function. This issue could allow a local user to crash the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 20:35:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2138001, 2138003, 2138004, 2138005, 2138006    
Bug Blocks: 2133476, 2175296    

Description Alex 2022-10-26 19:41:03 UTC
A deouble-free flaw in the Linux Kernel Intel GVT-g graphics driver found. The problem happens when some system resource on high cost. One way to trigger is to make dma high load. When it gets into the situation when function intel_gvt_dma_map_guest_page failed, the flaw being triggered.

Reference:
https://lore.kernel.org/all/20221007013708.1946061-1-zyytlz.wz@163.com/

Comment 1 Alex 2022-10-26 20:18:38 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2138001]

Comment 4 Justin M. Forbes 2022-11-08 15:41:58 UTC
Isn't this a dup of https://bugzilla.redhat.com/show_bug.cgi?id=2134596  just with a CVE number associated?

Comment 8 Justin M. Forbes 2023-01-19 22:58:07 UTC
This was fixed for Fedora with the 6.1.5 stable kernel rebases.

Comment 9 Jocelyn Falempe 2023-01-31 13:59:32 UTC
FYI, the fix was also backported to v6.0.19

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bb84f2e119accfc65d5fa6ebe31751cdc3bca9fb

Comment 12 Rohit Keshri 2023-04-04 16:08:54 UTC
*** Bug 2134591 has been marked as a duplicate of this bug. ***

Comment 13 errata-xmlrpc 2023-05-09 07:12:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2148 https://access.redhat.com/errata/RHSA-2023:2148

Comment 14 errata-xmlrpc 2023-05-09 07:51:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2458 https://access.redhat.com/errata/RHSA-2023:2458

Comment 15 errata-xmlrpc 2023-05-16 08:05:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:2736 https://access.redhat.com/errata/RHSA-2023:2736

Comment 16 errata-xmlrpc 2023-05-16 08:34:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:2951 https://access.redhat.com/errata/RHSA-2023:2951

Comment 17 Product Security DevOps Team 2023-05-16 20:35:54 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-3707

Comment 20 errata-xmlrpc 2024-02-07 16:29:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

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