Bug 1832543 (CVE-2020-12655) - CVE-2020-12655 kernel: sync of excessive duration via an XFS v5 image with crafted metadata
Summary: CVE-2020-12655 kernel: sync of excessive duration via an XFS v5 image with cr...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-12655
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1832545 1837191 1837192 1837193 1837194 1837195
Blocks: 1832546
TreeView+ depends on / blocked
 
Reported: 2020-05-06 19:41 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-12-15 17:50 UTC (History)
49 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was discovered in the XFS source in the Linux kernel. This flaw allows an attacker with the ability to mount an XFS filesystem, to trigger a denial of service while attempting to sync a file located on an XFS v5 image with crafted metadata.
Clone Of:
Environment:
Last Closed: 2020-08-25 19:17:46 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:3545 0 None None None 2020-08-25 13:13:42 UTC
Red Hat Product Errata RHSA-2020:4431 0 None None None 2020-11-04 00:51:03 UTC
Red Hat Product Errata RHSA-2020:4609 0 None None None 2020-11-04 02:23:30 UTC

Description Guilherme de Almeida Suckevicz 2020-05-06 19:41:04 UTC
An issue was discovered in xfs_agf_verify in fs/xfs/libxfs/xfs_alloc.c in the Linux kernel. An attacker who is able to mount a xfs filesystem can trigger a denial of service while attempting to sync a file located an XFS v5 image with crafted metadata.

Reference and upstream commit:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d0c7feaf87678371c2c09b3709400be416b2dc62
https://lore.kernel.org/linux-xfs/20200221153803.GP9506@magnolia/

Comment 1 Guilherme de Almeida Suckevicz 2020-05-06 19:43:08 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1832545]

Comment 4 Wade Mealing 2020-05-19 03:45:41 UTC
Mitigation:


This flaw requires an attacker being able to have the system mount a crafted filesystem.

If the xfs filesystem is not in use, the 'xfs' kernel module can be blacklisted and the module
will not be loaded when the filesystem is mounted, mounting will fail.

However, if this filesystem is in use, this workaround will not be suitable.

To find out how to blacklist the "xfs" kernel module please see https://access.redhat.com/solutions/41278 or contact Red hat Global Support services

Comment 8 Petr Matousek 2020-05-26 12:20:47 UTC
Statement:

This issue is rated as having Low impact because of the preconditions needed to trigger it (administrative account or physical access).

Comment 9 errata-xmlrpc 2020-08-25 13:13:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:3545 https://access.redhat.com/errata/RHSA-2020:3545

Comment 10 Product Security DevOps Team 2020-08-25 19:17:46 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-2020-12655

Comment 11 errata-xmlrpc 2020-11-04 00:51:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:4431 https://access.redhat.com/errata/RHSA-2020:4431

Comment 12 errata-xmlrpc 2020-11-04 02:23:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:4609 https://access.redhat.com/errata/RHSA-2020:4609


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