Bug 1749973 (CVE-2019-15220) - CVE-2019-15220 kernel: Use-after-free in drivers/net/wireless/intersil/p54/p54usb.c
Summary: CVE-2019-15220 kernel: Use-after-free in drivers/net/wireless/intersil/p54/p5...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2019-15220
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: 1749981
Blocks: 1749979
TreeView+ depends on / blocked
 
Reported: 2019-09-07 01:08 UTC by Pedro Sampaio
Modified: 2021-02-16 21:24 UTC (History)
42 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the Linux kernel in versions prior to 5.2.1. The Prism54 USB device driver is susceptible to malicious USB devices. An attacker able to add or remove USB devices could cause a memory corruption or crash leading to a denial of service. Availability is the highest threat to the system.
Clone Of:
Environment:
Last Closed: 2020-01-21 14:09:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2019-09-07 01:08:59 UTC
An issue was discovered in the Linux kernel before 5.2.1. There is a
use-after-free caused by a malicious USB device in the
drivers/net/wireless/intersil/p54/p54usb.c driver.

Upstream patch:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6e41e2257f1094acc37618bf6c856115374c6922

References:

https://syzkaller.appspot.com/bug?id=082c09653e43e33a6a56f8c57cf051eeacae9d5f
https://www.openwall.com/lists/oss-security/2019/08/20/2

Comment 1 Pedro Sampaio 2019-09-07 01:31:41 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1749981]

Comment 2 Justin M. Forbes 2019-09-09 07:02:59 UTC
This was fixed for Fedora with the 5.1.18 stable kernel update

Comment 6 Alex 2020-01-20 17:03:04 UTC
Thinking of workaround and if actual for RHEL-8.

For RHEL-8 kernel (if reading .config file), related params disabled by default:

# CONFIG_P54_COMMON is not set
# CONFIG_PRISM54 is not set

- so the issue not actual for RHEL-8 default kernels.

When building kernel and with "make menuconfig" (for being sure that these two params disabled), disable checkbox "Softmac Prism54 support":

Device Drivers  --->
  [*] Network device support  --->
        Wireless LAN --->
          [*] Wireless LAN (IEEE 802.11)
           < >   Softmac Prism54 support

Comment 8 Product Security DevOps Team 2020-01-21 14:09:36 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-15220

Comment 9 Alex 2020-01-23 17:30:06 UTC
On 20 Jan 2020, previously written:
"For RHEL-8 kernel (if reading .config file), related params disabled by default:

# CONFIG_P54_COMMON is not set
# CONFIG_PRISM54 is not set
".

Checked different .configs for "rhel* < 8" also.
Conclusion: it is disabled by default for all default kernels (versions of rhel) apart from old (was enabled for 2.6.18 that is rhel5).

For rhel5 (and before rhel5) use mitigation that is blacklist corresponding modules:

vi /etc/modprobe.d/blacklist.conf
blacklist p54pci
blacklist prism54

Comment 11 Alex 2020-01-30 10:52:20 UTC
Mitigation:

To mitigate this issue (for rhel5), prevent modules p54pci, prism54 from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.


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