Bug 1734243 (CVE-2019-14283)

Summary: CVE-2019-14283 kernel: integer overflow and OOB read in drivers/block/floppy.c
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, airlied, bhu, blc, brdeoliv, bskeggs, dhoward, dvlasenk, esammons, fhrbata, hdegoede, hkrzesin, iboverma, ichavero, itamar, jarodwilson, jeremy, jforbes, jglisse, jlelli, john.j5live, jonathan, josef, jross, jshortt, jstancek, jwboyer, kernel-maint, kernel-mgr, labbott, lgoncalv, linville, matt, mchehab, mcressma, mjg59, mlangsdo, mmilgram, nmurray, plougher, psampaio, rt-maint, rvrbovsk, steved, williams, wmealing, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the Linux kernel’s floppy disk driver implementation. A local attacker with access to the floppy device could call set_geometry in drivers/block/floppy.c, which does not validate the sect and head fields, causing an integer overflow and out-of-bounds read. This flaw may crash the system or allow an attacker to gather information causing subsequent successful attacks.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 22:35:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1734244, 1735566, 1735567, 1735568, 1735569, 1735570, 1735571, 1828321, 1828322    
Bug Blocks: 1734249    

Description Dhananjay Arunesh 2019-07-30 04:43:11 UTC
A vulnerability was found in the Linux kernels floppy disk driver implementation. A local user with permissions to access the floppy device could call set_geometry in drivers/block/floppy.c which does not validate the sect and head fields causing an integer overflow and out-of-bounds read.  This may crash the system or allow an attacker to gather information allowing for successful subsequent attacks.

Systems using QEMU will likely have the virtual floppy disk controller (FDC) enabled by default, Linux guests using this configuration will auto-load the floppy kernel module and likely be affected.


Mitigation:

The kernel module named 'floppy' contains the affected code, this can be blacklisted using the standard blacklisting techniques or disabled in the systems BIOS.  See https://access.redhat.com/solutions/41278 for how to blacklist a kernel module.

Virtualized guest systems can also remove the system from the guests configuration to ensure that the module does not load.

External references:

Changelog
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.2.3

Upstream commit
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=da99466ac243f15fbba65bd261bfc75ffa1532b6
https://github.com/torvalds/linux/commit/da99466ac243f15fbba65bd261bfc75ffa1532b6

Comment 1 Dhananjay Arunesh 2019-07-30 04:43:33 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1734244]

Comment 2 Justin M. Forbes 2019-07-30 14:03:13 UTC
This was fixed for Fedora with the 5.1.20 stable kernel update.

Comment 4 Wade Mealing 2019-08-01 04:53:07 UTC
This flaw is rated as moderate, it is an information leak for systems that have either real floppy disk hardware or virtual floppy disk hardware (in the case of QEMU) present in the system.

Comment 8 errata-xmlrpc 2020-03-31 19:11:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 9 errata-xmlrpc 2020-03-31 19:21:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 10 Product Security DevOps Team 2020-03-31 22:35:11 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-14283

Comment 13 errata-xmlrpc 2020-06-11 02:10:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.7 Extended Update Support

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