Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-15-SP2:Update
bluez.25899
0009-btmon-fix-segfault-caused-by-buffer-over-r...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0009-btmon-fix-segfault-caused-by-buffer-over-read.patch of Package bluez.25899
From e63175ecf66f682721f2ba0337f65330aa798744 Mon Sep 17 00:00:00 2001 From: Matias Karhumaa <matias.karhumaa@gmail.com> Date: Tue, 16 Oct 2018 23:23:47 +0300 Subject: [PATCH 09/13] btmon: fix segfault caused by buffer over-read Fix segfault caused by buffer over-read in btmon. Fix is to check in packet_monitor() that index is not bigger than MAX_INDEX before accessing index_list. Crash was found by fuzzing btmon 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 @@ -3929,6 +3929,11 @@ void packet_monitor(struct timeval *tv, index_current = index; } + if (index != HCI_DEV_NONE && index > MAX_INDEX) { + print_field("Invalid index (%d)", index); + return; + } + if (tv && time_offset == ((time_t) -1)) time_offset = tv->tv_sec;
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