Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
bluez.16863
0003-btmon-fix-segfault-caused-by-buffer-over-r...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-btmon-fix-segfault-caused-by-buffer-over-read.patch of Package bluez.16863
From 5ceef2cbde0b4407e61dc2370780bda895c8019c Mon Sep 17 00:00:00 2001 From: Matias Karhumaa <matias.karhumaa@gmail.com> Date: Tue, 16 Oct 2018 23:20:40 +0300 Subject: [PATCH 03/13] btmon: fix segfault caused by buffer over-read Fix segfault caused by buffer over-read in packet_hci_scodata function of monitor/packet.c. Fix is to check that index is not bigger than MAX_INDEX. This bug was found by fuzzing with AFL. --- monitor/packet.c | 5 +++++ 1 file changed, 5 insertions(+) Index: bluez-5.48/monitor/packet.c =================================================================== --- bluez-5.48.orig/monitor/packet.c +++ bluez-5.48/monitor/packet.c @@ -10283,6 +10283,11 @@ void packet_hci_scodata(struct timeval * uint8_t flags = acl_flags(handle); char handle_str[16], extra_str[32]; + if (index > MAX_INDEX) { + print_field("Invalid index (%d).", index); + return; + } + index_list[index].frame++; if (size < HCI_SCO_HDR_SIZE) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor