Bug 2130141 (CVE-2022-39188) - CVE-2022-39188 kernel: unmap_mapping_range() race with munmap() on VM_PFNMAP mappings leads to stale TLB entry
Summary: CVE-2022-39188 kernel: unmap_mapping_range() race with munmap() on VM_PFNMAP ...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-39188
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:
: 2120942 (view as bug list)
Depends On: 2130158 2130164 2130165 2130166 2130167 2183142 2183143 2183144 2183145 2209999 2210000 2210001 2210003 2210004 2210005
Blocks: 2120833 2123792
TreeView+ depends on / blocked
 
Reported: 2022-09-27 10:13 UTC by Rohit Keshri
Modified: 2023-09-25 07:34 UTC (History)
50 users (show)

Fixed In Version: Kernel 5.19
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in include/asm-generic/tlb.h in the Linux kernel due to a race condition (unmap_mapping_range versus munmap). This issue allows a device driver to free a page while it still has stale TLB entries.
Clone Of:
Environment:
Last Closed: 2023-06-07 01:29:48 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:2148 0 None None None 2023-05-09 07:11:44 UTC
Red Hat Product Errata RHSA-2023:2458 0 None None None 2023-05-09 07:50:48 UTC
Red Hat Product Errata RHSA-2023:2736 0 None None None 2023-05-16 08:05:14 UTC
Red Hat Product Errata RHSA-2023:2951 0 None None None 2023-05-16 08:34:01 UTC
Red Hat Product Errata RHSA-2023:3388 0 None None None 2023-05-31 15:50:50 UTC
Red Hat Product Errata RHSA-2023:4801 0 None None None 2023-08-29 09:20:51 UTC
Red Hat Product Errata RHSA-2023:4814 0 None None None 2023-08-29 09:20:08 UTC

Description Rohit Keshri 2022-09-27 10:13:33 UTC
An issue was discovered in include/asm-generic/tlb.h in the Linux kernel before 5.19. Because of a race condition (unmap_mapping_range versus munmap), a device driver can free a page while it still has stale TLB entries. This only occurs in situations with VM_PFNMAP VMAs.

Refrence:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b67fbebd4cf980aecbcc750e1462128bffe8ae15
https://bugs.chromium.org/p/project-zero/issues/detail?id=2329

Comment 2 Rohit Keshri 2022-09-27 11:09:38 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2130158]

Comment 4 Justin M. Forbes 2022-09-28 16:26:02 UTC
This was fixed for Fedora with the 5.19 kernel rebases.

Comment 11 errata-xmlrpc 2023-05-09 07:11:41 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 12 errata-xmlrpc 2023-05-09 07:50:43 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 13 errata-xmlrpc 2023-05-16 08:05:09 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 14 errata-xmlrpc 2023-05-16 08:33:57 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 Rohit Keshri 2023-05-30 15:30:38 UTC
*** Bug 2120942 has been marked as a duplicate of this bug. ***

Comment 18 errata-xmlrpc 2023-05-31 15:50:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

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

Comment 20 Product Security DevOps Team 2023-06-07 01:29:44 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-39188

Comment 21 errata-xmlrpc 2023-08-29 09:20:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

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

Comment 22 errata-xmlrpc 2023-08-29 09:20:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

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


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