Bug 1757321 (CVE-2019-16413) - CVE-2019-16413 kernel: i_size_read() infinite loop leads to denial of service
Summary: CVE-2019-16413 kernel: i_size_read() infinite loop leads to denial of service
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2019-16413
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:
Depends On:
Blocks: 1757323
TreeView+ depends on / blocked
 
Reported: 2019-10-01 08:38 UTC by msiddiqu
Modified: 2021-02-16 21:20 UTC (History)
47 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the implementation of the 9p filesystem in the Linux kernel. The 9p filesystem does not protect i_size_write() properly, which causes an i_size_read() infinite loop. An attacker, able to mount a specially crafted filesystem, could cause a denial of service on SMP systems.
Clone Of:
Environment:
Last Closed: 2020-03-17 10:31:43 UTC
Embargoed:


Attachments (Terms of Use)

Description msiddiqu 2019-10-01 08:38:50 UTC
An issue was discovered in the Linux kernel. The 9p filesystem did not protect i_size_write() properly, which causes an i_size_read() infinite loop and denial of service on SMP systems.

Upstream patch: 

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5e3cc1ee1405a7eb3487ed24f786dec01b4cbe1f

References:  

https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.0.4
https://patchwork.kernel.org/patch/10753365/

Comment 3 Wade Mealing 2020-03-17 06:40:04 UTC
Mitigation:


As the 9p module will be auto-loaded when required, its use can be disabled  by preventing the module from loading with the following instructions:

# echo "install 9p /bin/true" >> /etc/modprobe.d/disable-9p.conf 
 
The system will need to be restarted if the 9p modules are loaded. In most circumstances, the 9p kernel modules will be unable to be unloaded while the filesystems are in use.

If the system requires this module to work correctly, this mitigation may not be suitable.

If you need further assistance, see KCS article https://access.redhat.com/solutions/41278 or contact Red Hat Global Support Services.

Comment 5 Product Security DevOps Team 2020-03-17 10:31:43 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-2019-16413


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