Bug 1193227 - (CVE-2019-8922) VUL-0: CVE-2019-8922: bluez: heap-based buffer overflow via crafted request
(CVE-2019-8922)
VUL-0: CVE-2019-8922: bluez: heap-based buffer overflow via crafted request
Status: NEW
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P3 - Medium : Major
: ---
Assigned To: Al Cho
Security Team bot
https://smash.suse.de/issue/315978/
CVSSv3.1:SUSE:CVE-2019-8922:7.5:(AV:N...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-30 10:53 UTC by Carlos López
Modified: 2022-08-08 09:00 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
abergmann: needinfo? (acho)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos López 2021-11-30 10:53:03 UTC
rh#2027459

A heap-based buffer overflow was discovered in bluetoothd in BlueZ through 5.48. There isn't any check on whether there is enough space in the destination buffer. The function simply appends all data passed to it. The values of all attributes that are requested are appended to the output buffer. There are no size checks whatsoever, resulting in a simple heap overflow if one can craft a request where the response is large enough to overflow the preallocated buffer. This issue exists in service_attr_req gets called by process_request (in sdpd-request.c), which also allocates the response buffer.

References:
https://bugzilla.redhat.com/show_bug.cgi?id=2027459
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-8922
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8922
http://www.cvedetails.com/cve/CVE-2019-8922/
https://ssd-disclosure.com/ssd-advisory-linux-bluez-information-leak-and-heap-overflow/
Comment 1 Carlos López 2021-11-30 10:53:32 UTC
Affected codestreams:
 - SUSE:SLE-11-SP1:Update
 - SUSE:SLE-11-SP3:Update
 - SUSE:SLE-11-SP4:Update
 - SUSE:SLE-12-SP2:Update
 - SUSE:SLE-15:Update 
 - SUSE:SLE-15-SP2:Update 

Already fixed in SUSE:SLE-15-SP3:Update and openSUSE:Factory.

Upstream patch:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=6c7243fb6ab90b7b855cead98c66394fedea135f