CVE-2021-0277 - Out-of-bounds Read

Severity

88%

Complexity

27%

Confidentiality

98%

An Out-of-bounds Read vulnerability in the processing of specially crafted LLDP frames by the Layer 2 Control Protocol Daemon (l2cpd) of Juniper Networks Junos OS and Junos OS Evolved may allow an attacker to cause a Denial of Service (DoS), or may lead to remote code execution (RCE). Continued receipt and processing of these frames, sent from the local broadcast domain, will repeatedly crash the l2cpd process and sustain the Denial of Service (DoS) condition. This issue affects: Juniper Networks Junos OS: 12.3 versions prior to 12.3R12-S18; 15.1 versions prior to 15.1R7-S9; 17.3 versions prior to 17.3R3-S12; 17.4 versions prior to 17.4R2-S13, 17.4R3-S5; 18.1 versions prior to 18.1R3-S13; 18.2 versions prior to 18.2R3-S8; 18.3 versions prior to 18.3R3-S5; 18.4 versions prior to 18.4R2-S8, 18.4R3-S8; 19.1 versions prior to 19.1R3-S5; 19.2 versions prior to 19.2R3-S3; 19.3 versions prior to 19.3R2-S6, 19.3R3-S2; 19.4 versions prior to 19.4R1-S4, 19.4R2-S4, 19.4R3-S3; 20.1 versions prior to 20.1R2-S2, 20.1R3; 20.2 versions prior to 20.2R3-S1; 20.3 versions prior to 20.3R2-S1, 20.3R3; 20.4 versions prior to 20.4R2. Juniper Networks Junos OS Evolved versions prior to 20.4R2-EVO.

CVSS 3.1 Base Score 8.8. CVSS Attack Vector: adjacent_network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

CVSS 2.0 Base Score 5.8. CVSS Attack Vector: adjacent_network. CVSS Attack Complexity: low. CVSS Vector: (AV:A/AC:L/Au:N/C:P/I:P/A:P).

Demo Examples

Out-of-bounds Read

CWE-125

In the following code, the method retrieves a value from an array at a specific array index location that is given as an input parameter to the method


               
}
return value;// check that the array index is less than the maximum// length of the array
value = array[index];// get the value at the specified index of the array
// if array index is invalid then output error message// and return value indicating error
value = -1;

However, this method only verifies that the given array index is less than the maximum length of the array but does not check for the minimum value (CWE-839). This will allow a negative value to be accepted as the input array index, which will result in a out of bounds read (CWE-125) and may allow access to sensitive memory. The input array index should be checked to verify that is within the maximum and minimum range required for the array (CWE-129). In this example the if statement should be modified to include a minimum range check, as shown below.


               
...// check that the array index is within the correct// range of values for the array

Overview

Type

Juniper

First reported 3 years ago

2021-07-15 20:15:00

Last updated 3 years ago

2021-07-28 14:20:00

Affected Software

Juniper JUNOS 12.3

12.3

Juniper Junos 12.3 R1

12.3

Juniper JunOS 12.3 R10

12.3

Juniper JUNOS 12.3 R10-S1

12.3

Juniper JUNOS 12.3 R10-S2

12.3

Juniper Junos 12.3 R11

12.3

Juniper JunOS 12.3 R12

12.3

Juniper JUNOS 12.3 R12-S1

12.3

Juniper JUNOS 12.3 R12-S11

12.3

Juniper JUNOS 12.3 R12-S12

12.3

Juniper JunOS 15.1 F1

15.1

Juniper Junos 15.1 F2-S3

15.1

Juniper Junos 15.1 F2-S2

15.1

Juniper Junos 15.1 F4

15.1

Juniper Junos 15.1 F2-S4

15.1

Juniper Junos 15.1 F5-S7

15.1

Juniper JunOS 15.1 F2

15.1

Juniper Junos 15.1 A1

15.1

Juniper Junos 15.1 F3

15.1

Juniper JunOS 15.1 F2-s1

15.1

Juniper Junos 15.1 F5

15.1

Juniper JUNOS 15.1 F

15.1

Juniper Junos OS 15.1

15.1

Juniper Junos 12.3 R12-s8

12.3

Juniper JUNOS 12.3 R12-s13

12.3

Juniper JUNOS 12.3 R12-S14

12.3

Juniper JUNOS 12.3 R12-S3

12.3

Juniper JUNOS 12.3 R12-S4

12.3

Juniper JUNOS 12.3 R12-S6

12.3

Juniper JUNOS 12.3 R12-S15

12.3

Juniper Junos OS 15.1 R7

15.1

Juniper Junos 15.1 F6-S4

15.1

Juniper JunOS 15.1 F7

15.1

Juniper Junos 15.1 R3

15.1

Juniper JunOS 15.1 R6

15.1

Juniper JunOS 15.1 R4

15.1

Juniper Junos 15.1 F6-S7

15.1

Juniper JUNOS 15.1 F6

15.1

Juniper JunOS 15.1 R2

15.1

Juniper Junos 15.1 R4-S7

15.1

Juniper Junos 15.1 R4-S8

15.1

Juniper Junos 15.1 R5-S5

15.1

Juniper Junos 15.1 R6-S1

15.1

Juniper JunOS 15.1 R5

15.1

Juniper Junos 15.1 R1

15.1

Juniper Junos 15.1 R5-S1

15.1

Juniper JUNOS 15.1 R5-S6

15.1

Juniper JUNOS 15.1 R6-S2

15.1

Juniper Junos 15.1 R4-S9

15.1

Juniper Junos 15.1 R6-S6

15.1

Juniper JUNOS 15.1 F6-S3

15.1

Juniper JUNOS 15.1 R7-S1

15.1

Juniper JUNOS 15.1 R7-S2

15.1

Juniper JUNOS 15.1 R7-S3

15.1

Juniper JUNOS 15.1 F6-s2

15.1

Juniper JUNOS 15.1 F6-s1

15.1

Juniper JUNOS 17.3

17.3

Juniper Junos OS 15.1 R7-s4

15.1

Juniper JUNOS 17.3 R1-S1

17.3

Juniper Junos OS 15.1 R7-s5

15.1

Juniper Junos OS 15.1 F6-s12

15.1

Juniper Junos 17.3 R2

17.3

Juniper Junos 17.4 R1

17.4

Juniper Junos 17.4 R2

17.4

Juniper JUNOS 17.3R2-S2

17.3

Juniper JUNOS 18.1 R3

18.1

Juniper JUNOS 18.1R2

18.1

Juniper Junos 17.4 R2-S2

17.4

Juniper JUNOS 17.4 R1-S1

17.4

Juniper JUNOS 18.2

18.2

Juniper JUNOS 18.2 R2-S1

18.2

Juniper JUNOS 18.2R2-S2

18.2

Juniper JunOS 18.2 R1-S3

18.2

Juniper JUNOS 17.3 R3-S1

17.3

Juniper JUNOS 17.3 R3-S2

17.3

Juniper JUNOS 17.4 R1-S2

17.4

Juniper JUNOS 17.3 R2-S1

17.3

Juniper JUNOS 17.4 R3

17.4

Juniper JUNOS 17.4 R2-S1

17.4

Juniper JUNOS R2-S2

18.1

Juniper JUNOS 17.4

17.4

Juniper JUNOS 18.1R3-S4

18.1

Juniper JUNOS 18.1 R3-S3

18.1

Juniper JUNOS 18.1 R3-S2

18.1

Juniper JUNOS 18.1

18.1

Juniper JUNOS R2-S1

18.1

Juniper JUNOS 18.1 R2-S4

18.1

Juniper JunOS 17.4 R1-s5

17.4

Juniper JunOS 18.1 R3-s1

18.1

Juniper JunOS 17.3 R3

17.3

Juniper JUNOS 17.3 R3-S3

17.3

Juniper JunOS 18.2 R1

18.2

Juniper JUNOS 17.4R1-S7

17.4

Juniper JUNOS 17.4R1-S4

17.4

Juniper JUNOS 17.3R3-S4

17.3

Juniper JUNOS 17.4 R2-S3

17.4

Juniper JUNOS 17.4R2-S4

17.4

Juniper JUNOS 17.4 R1-S6

17.4

Juniper JUNOS 18.2R2-S3

18.2

Juniper JUNOS18.2 R2-S4

18.2

Juniper JUNOS 18.2 R1-S5

18.2

Juniper Junos OS 17.3 R2-S3

17.3

Juniper JUNOS 17.4 R2-S5

17.4

Juniper JUNOS 17.4 R2-S6

17.4

Juniper JUNOS 17.4 R2-S7

17.4

Juniper JUNOS 18.2R3

18.2

Juniper JUNOS 18.1 R3-S6

18.1

Juniper JUNOS 18.1 R3-S7

18.1

Juniper JUNOS 18.2 R2-S5

18.2

Juniper JUNOS 18.2 R2-S6

18.2

Juniper JUNOS 18.2 R3-S1

18.2

Juniper JUNOS 17.3 R2-S4

17.3

Juniper JUNOS 17.4 R2-S8

17.4

Juniper JUNOS 18.2 R3-S2

18.2

Juniper JUNOS 18.1 R3-S8

18.1

Juniper JUNOS 18.1 R3-S9

18.1

Juniper JUNOS 17.3 R3-S7

17.3

Juniper JUNOS 18.2 R3-S3

18.2

Juniper JUNOS 17.4 R3-S1

17.4

Juniper JUNOS 17.4 R2-S9

17.4

Juniper JUNOS 17.4 R2-S10

17.4

Juniper JunOS 18.4 R1

18.4

Juniper JUNOS 18.4

18.4

Juniper Junos OS 18.4 R1-S1

18.4

Juniper JUNOS 18.4R1-S2

18.4

Juniper Junos OS 19.1 R1

19.1

Juniper Junos OS 19.1

19.1

Juniper Junos OS 19.2 R1

19.2

Juniper JUNOS 18.4R2

18.4

Juniper Junos OS 19.1 R1-s1

19.1

Juniper JUNOS 19.1 R1-S3

19.1

Juniper JUNOS 19.1 R1-S2

19.1

Juniper JUNOS 18.4 R1-S5

18.4

Juniper JUNOS 19.2 R1-S1

19.2

Juniper JUNOS 19.2 R1-S2

19.2

Juniper JUNOS 18.4 R2-S1

18.4

Juniper JUNOS 19.3

19.3

Juniper JUNOS 19.3 R1

19.3

Juniper Junos OS 19.2

19.2

Juniper JUNOS 18.4 R2-S2

18.4

Juniper JUNOS 19.2 R1-S3

19.2

Juniper JUNOS 19.4 R1

19.4

Juniper JUNOS 19.3 R2

19.3

Juniper Junos OS 19.1 R2

19.1

Juniper JUNOS 18.4 R3

18.4

Juniper JUNOS 18.4 R2-S3

18.4

Juniper JUNOS 19.3 R2-S1

19.3

Juniper JUNOS 19.3 R1-S1

19.3

Juniper JUNOS 20.1 R1

20.1

Juniper JUNOS 19.4 R1-S1

19.4

Juniper JUNOS 19.3 R2-S2

19.3

Juniper JUNOS 19.1 R1-S4

19.1

Juniper JUNOS 18.4 R1-S6

18.4

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.