Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vesta
meta-vesta
Commits
d391de45
Commit
d391de45
authored
Sep 18, 2017
by
Pete Tucker
Browse files
Add fix for Blueborne vulnerability to helium
parent
6283b8b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
recipes-connectivity/bluez5/bluez5/CVE-2017-1000250.patch
0 → 100644
View file @
d391de45
Description: validate continuation requested data size
Origin: Armis Security <security@armis.com>
CVE-2017-1000250
Included is our offered patch for the information leak vulnerability:
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index 1eefdce..ddeea7f 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -918,15 +918,20 @@
static int service_search_attr_req(sdp_req_t *req, sdp_buf_t *buf)
/* continuation State exists -> get from cache */
sdp_buf_t *pCache = sdp_get_cached_rsp(cstate);
if (pCache) {
- uint16_t sent = MIN(max, pCache->data_size - cstate->cStateValue.maxBytesSent);
- pResponse = pCache->data;
- memcpy(buf->data, pResponse + cstate->cStateValue.maxBytesSent, sent);
- buf->data_size += sent;
- cstate->cStateValue.maxBytesSent += sent;
- if (cstate->cStateValue.maxBytesSent == pCache->data_size)
- cstate_size = sdp_set_cstate_pdu(buf, NULL);
- else
- cstate_size = sdp_set_cstate_pdu(buf, cstate);
+ if (cstate->cStateValue.maxBytesSent >= pCache->data_size) {
+ status = SDP_INVALID_CSTATE;
+ SDPDBG("Got bad cstate with invalid size");
+ } else {
+ uint16_t sent = MIN(max, pCache->data_size - cstate->cStateValue.maxBytesSent);
+ pResponse = pCache->data;
+ memcpy(buf->data, pResponse + cstate->cStateValue.maxBytesSent, sent);
+ buf->data_size += sent;
+ cstate->cStateValue.maxBytesSent += sent;
+ if (cstate->cStateValue.maxBytesSent == pCache->data_size)
+ cstate_size = sdp_set_cstate_pdu(buf, NULL);
+ else
+ cstate_size = sdp_set_cstate_pdu(buf, cstate);
+ }
} else {
status = SDP_INVALID_CSTATE;
SDPDBG("Non-null continuation state, but null cache buffer");
recipes-connectivity/bluez5/bluez5_5.41.bbappend
0 → 100644
View file @
d391de45
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "\
file://CVE-2017-1000250.patch \
"
recipes-kernel/linux/linux-vesta_4.1-1.0.bb
View file @
d391de45
...
@@ -14,7 +14,7 @@ PV .= "4.1-1.0+git${SRCPV}"
...
@@ -14,7 +14,7 @@ PV .= "4.1-1.0+git${SRCPV}"
SRCBRANCH = "master"
SRCBRANCH = "master"
#Always update SRCREV based on your last commit
#Always update SRCREV based on your last commit
SRCREV = "
7aaa37ed45537645c16689257d6d396e0e2dbfba
"
SRCREV = "
2e20945aced2e9c27f95ede25affc86d6bbcd7b5
"
SRC_URI = "git://git.rigado.com/vesta/linux-fslc-imx-4.1-1.0.git;protocol=https;branch=${SRCBRANCH}; \
SRC_URI = "git://git.rigado.com/vesta/linux-fslc-imx-4.1-1.0.git;protocol=https;branch=${SRCBRANCH}; \
file://defconfig"
file://defconfig"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment