Bug 1969489 (CVE-2020-36386) - CVE-2020-36386 kernel: slab out-of-bounds read in hci_extended_inquiry_result_evt() in net/bluetooth/hci_event.c
Summary: CVE-2020-36386 kernel: slab out-of-bounds read in hci_extended_inquiry_result...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-36386
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: 1978600 1969490 1978595 1978596 1978597 1978598 1978599
Blocks: 1969492
TreeView+ depends on / blocked
 
Reported: 2021-06-08 14:09 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-11-09 21:51 UTC (History)
46 users (show)

Fixed In Version: Kernel 5.10
Doc Type: If docs needed, set a value
Doc Text:
A flaw out of bounds memory access in the Linux kernel bluetooth subsystem was found in the way when some data being read about the bluetooth device with the hci_extended_inquiry_result_evt call. A local user could use this flaw to crash the system or read some data out of memory bounds that can lead to data confidentiality threat.
Clone Of:
Environment:
Last Closed: 2021-11-09 21:51:05 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4140 0 None None None 2021-11-09 17:23:44 UTC
Red Hat Product Errata RHSA-2021:4356 0 None None None 2021-11-09 18:27:29 UTC

Description Guilherme de Almeida Suckevicz 2021-06-08 14:09:18 UTC
An issue was discovered in the Linux kernel before 5.8.1. net/bluetooth/hci_event.c has a slab out-of-bounds read in hci_extended_inquiry_result_evt.

Reference:
https://sites.google.com/view/syzscope/kasan-slab-out-of-bounds-read-in-hci_extended_inquiry_result_evt

Upstream patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=51c19bf3d5cfaa66571e4b88ba2a6f6295311101

Comment 1 Guilherme de Almeida Suckevicz 2021-06-08 14:10:03 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1969490]

Comment 2 Justin M. Forbes 2021-06-08 19:01:26 UTC
This was fixed for Fedora with the 5.7.15 stable kernel updates.

Comment 4 Alex 2021-07-02 09:09:01 UTC
Apart from the patch for this issue
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=51c19bf3d5cfaa66571e4b88ba2a6f6295311101
, also need to apply these two patches too (if not yet):
1. commit 629b49c848ee ("Bluetooth: Prevent out-of-bounds read in hci_inquiry_result_with_rssi_evt()");
2. commit 75bbd2ea50ba ("Bluetooth: Prevent out-of-bounds read in hci_inquiry_result_evt()").

Comment 12 errata-xmlrpc 2021-11-09 17:23:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4140 https://access.redhat.com/errata/RHSA-2021:4140

Comment 13 errata-xmlrpc 2021-11-09 18:27:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4356 https://access.redhat.com/errata/RHSA-2021:4356

Comment 14 Product Security DevOps Team 2021-11-09 21:51:00 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-36386


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