Bug 2116175 (CVE-2022-2590) - CVE-2022-2590 kernel: unprivileged tampering of shmem files
Summary: CVE-2022-2590 kernel: unprivileged tampering of shmem files
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2022-2590
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2116176 2116177 2116178 2116179 2116301 2116469
Blocks: 2112587
TreeView+ depends on / blocked
 
Reported: 2022-08-07 19:16 UTC by Alex
Modified: 2022-09-20 15:46 UTC (History)
52 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A race condition was found in the way the Linux kernel's memory subsystem handled the copy-on-write (COW) breakage of private read-only shared memory mappings. This flaw allows an unprivileged, local user to gain write access to read-only memory mappings, increasing their privileges on the system.
Clone Of:
Environment:
Last Closed: 2022-08-31 22:55:53 UTC
Embargoed:


Attachments (Terms of Use)

Description Alex 2022-08-07 19:16:44 UTC
A race condition was found in the way Linux kernel's memory subsystem handled breakage of the read only private mappings COW (copy-on-write mapping) situation on write access.
This is new privilege escalation issue, similar to Dirty COW (CVE-2016-5195), but it's limited to shmem only.
The user can corrupt only shared memory (shmem / tmpfs), so this issue could be considered less severe, than CVE-2016-5195.

An unprivileged local user could use this flaw to gain write access to otherwise read only memory mappings and thus increase their privileges on the system.

Fixes: 9ae0f87d009c ("mm/shmem: unconditionally set pte dirty in mfill_atomic_install_pte").
that is part of upstream Linux since v5.16.

Comment 6 Alex 2022-08-08 14:58:23 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2116469]

Comment 9 Product Security DevOps Team 2022-08-31 22:55:48 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-2590

Comment 10 Justin M. Forbes 2022-09-20 14:33:34 UTC
This is fixed for Fedora in the 5.19.6 stable kernel updates.


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