CVE-2022-1011: Use After Free

Published Mar 7, 2022
·
Updated

A flaw in the Linux Kernel found. If unprivileged users can mount FUSE filesystems, then can trigger use after free (UAF) that reads of write() buffers, allowing theft of (partial) /etc/shadow hashes or any other data from filesystem.

FUSE allows the userspace filesystem to specify on FUSEOPEN whether the file should use the normal kernel pagecache for handling read()/write() or just send FUSEREAD/FUSEWRITE requests directly to the userspace filesystem (using the flag FOPENDIRECTIO in fuseopenout::openflags).

In FOPENDIRECTIO mode, fusefilewriteiter() calls fusedirectwriteiter(), which normally calls fusedirectio(), which then imports the write buffer with fusegetuserpages(), which uses iovitergetpages() to grab references to userspace pages instead of actually copying memory.

On the filesystem device side, these pages can then either be read to userspace (via fusedevread()), or splice()d over into a pipe using fusedevspliceread() as pipe buffers with &nostealpipebufops.

This is wrong because after fusedevdoread() unlocks the FUSE request, the userspace filesystem can mark the request as completed, causing write() to return. At that point, the write buffer may be reused for other purposes, and the userspace filesystem should no longer have access to it.

Other sources

A use-after-free flaw was found in the Linux kernel’s FUSE filesystem in the way a user triggers write(). This flaw allows a local user to gain unauthorized access to data from the FUSE filesystem, resulting in privilege escalation.

Affected Software

81 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-372.9.1.rt7.166.el8
0:4.18.0-372.9.1.rt7.166.el8
redhat/kernel<0:4.18.0-372.9.1.el8
0:4.18.0-372.9.1.el8
redhat/Linux kernel<5.16
5.16
Linux Linux kernel<5.17
Linux Linux kernel=5.17
Linux Linux kernel=5.17-rc1
Linux Linux kernel=5.17-rc2
Linux Linux kernel=5.17-rc3
Linux Linux kernel=5.17-rc4
Linux Linux kernel=5.17-rc7
Fedoraproject Fedora=34
Fedoraproject Fedora=35
redhat Build Of Quarkus=2.0
redhat Developer Tools=1.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux Eus=8.6
redhat Enterprise Linux For Ibm Z Systems=8.0
redhat Enterprise Linux For Ibm Z Systems Eus=8.6
redhat Enterprise Linux For Power Little Endian=8.0
redhat Enterprise Linux For Power Little Endian Eus=8.6
redhat Enterprise Linux For Real Time=8
redhat Enterprise Linux For Real Time For Nfv=8
redhat Enterprise Linux For Real Time For Nfv Tus=8.6
redhat Enterprise Linux For Real Time Tus=8.6
redhat Enterprise Linux Server Aus=8.6
redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions=8.6
redhat Enterprise Linux Server Tus=8.6
redhat Enterprise Linux Server Update Services For Sap Solutions=8.6
All of the following
redhat Virtualization Host=4.0
redhat Enterprise Linux=8.0
All of the following
redhat Codeready Linux Builder
Any of the following
redhat Enterprise Linux=8.0
redhat Enterprise Linux=8.6
redhat Enterprise Linux Eus=8.6
redhat Enterprise Linux For Power Little Endian=8.0
redhat Enterprise Linux For Power Little Endian Eus=8.6
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H410c Firmware
NetApp H410c
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Oracle Communications Cloud Native Core Binding Support Function=22.1.3
redhat Virtualization Host=4.0
redhat Enterprise Linux=8.0
redhat Codeready Linux Builder
redhat Enterprise Linux=8.6
redhat Enterprise Linux Eus=8.6
redhat Enterprise Linux For Power Little Endian=8.0
redhat Enterprise Linux For Power Little Endian Eus=8.6
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s
NetApp H410c Firmware
NetApp H410c
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Remediation

Information

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Event History

Mar 7, 2022
CVE Published
10:00 AM
Mar 16, 2022
Data Sourced
via Red Hat·07:00 PM
DescriptionSeverityAffected Software
Mar 18, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:04 AM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·04:34 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-1011?

CVE-2022-1011 is considered a medium severity vulnerability due to its potential to allow unauthorized access to sensitive files.

2

How do I fix CVE-2022-1011?

To remediate CVE-2022-1011, upgrade to the fixed versions of the Linux kernel as specified in the patches provided by your distribution.

3

What systems are affected by CVE-2022-1011?

CVE-2022-1011 affects specific versions of the Linux kernel including Red Hat kernel versions 4.18.0-372.9.1 and 5.16, among others.

4

What type of vulnerability is CVE-2022-1011?

CVE-2022-1011 is a use after free (UAF) vulnerability that can lead to information disclosure.

5

Who is impacted by CVE-2022-1011?

Unprivileged users who can mount FUSE filesystems on affected systems are at risk from CVE-2022-1011.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203