CVE-2024-26903

Updated: 2024-11-21

CWE: CWE-476

Description:

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: rfcomm: Fix null-ptr-deref in rfcomm_check_security During our fuzz testing of the connection and disconnection process at the RFCOMM layer, we discovered this bug. By comparing the packets from a normal connection and disconnection process with the testcase that triggered a KASAN report. We analyzed the cause of this bug as follows: 1. In the packets captured during a normal connection, the host sends a `Read Encryption Key Size` type of `HCI_CMD` packet (Command Opcode: 0x1408) to the controller to inquire the length of encryption key.After receiving this packet, the controller immediately replies with a Command Completepacket (Event Code: 0x0e) to return the Encryption Key Size. 2. In our fuzz test case, the timing of the controller's response to this packet was delayed to an unexpected point: after the RFCOMM and L2CAP layers had disconnected but before the HCI layer had disconnected. 3. After receiving the Encryption Key Size Response at the time described in point 2, the host still called the rfcomm_check_security function. However, by this time `struct l2cap_conn *conn = l2cap_pi(sk)->chan->conn;` had already been released, and when the function executed `return hci_conn_security(conn->hcon, d->sec_level, auth_type, d->out);`, specifically when accessing `conn->hcon`, a null-ptr-deref error occurred. To fix this bug, check if `sk->sk_state` is BT_CLOSED before calling rfcomm_recv_frame in rfcomm_process_rx.

CVSS3: 5.5


Vendor State

OS Vendor version Errata
Oracle Linux 6 UEK 4 4.1.12-124.89.4.el6uek ELSA-2024-12606
Oracle Linux 7 UEK 4 4.1.12-124.89.4.el7uek ELSA-2024-12606
Ubuntu 14.04 HWE ESM 4.4.0-258.292~14.04.2 USN-6976-1
Debian 10 4.19.316-1 DLA-3840-1
Debian 10 cloud 4.19.316-1 DLA-3840-1
Ubuntu 20.04 5.4.0-189.209 USN-6896-1
Ubuntu 20.04 AWS 5.4.0-1128.138 USN-6896-5
Ubuntu 20.04 Azure 5.4.0-1133.140 USN-6896-1
Ubuntu 16.04 ESM 4.4.0-258.292 USN-6976-1
Ubuntu 16.04 HWE ESM 4.15.0-228.240~16.04.1 USN-6972-1
Ubuntu 16.04 AWS ESM 4.4.0-1173.188 USN-6976-1
Ubuntu 16.04 AWS HWE ESM 4.15.0-1172.185~16.04.1 USN-6972-2
Ubuntu 16.04 Azure ESM 4.15.0-1180.195~16.04.1 USN-6972-3
Ubuntu 22.04 5.15.0-112.122 USN-6820-1
Ubuntu 22.04 AWS 5.15.0-1063.69 USN-6821-3
Ubuntu 22.04 Azure 5.15.0-1066.75 USN-6821-4
RHEL 9 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Ubuntu 20.04 HWE AWS 5.15.0-1063.69~20.04.1 USN-6821-3
Ubuntu 20.04 GCP 5.4.0-1132.141 USN-6896-1

KernelCare State

OS Original kernel version State
Oracle Linux 6 UEK 4
Planned
Oracle Linux 7 UEK 4
Planned
Ubuntu 14.04 HWE ESM
Planned
Ubuntu 18.04 HWE Focal
5.4.0-53.59~18.04.1 show all hide all
5.4.0-56.62~18.04.1 5.4.0-45.49~18.04.2 5.4.0-51.56~18.04.1 5.4.0-48.52~18.04.1 5.4.0-47.51~18.04.1 5.4.0-52.57~18.04.1 5.4.0-59.65~18.04.1 5.4.0-62.70~18.04.1 5.4.0-44.48~18.04.1 5.4.0-46.50~18.04.1 5.4.0-49.53~18.04.1 5.4.0-54.60~18.04.1 5.4.0-55.61~18.04.1 5.4.0-57.63~18.04.1 5.4.0-58.64~18.04.1 5.4.0-60.67~18.04.1 5.4.0-63.71~18.04.1 5.4.0-64.72~18.04.1 5.4.0-65.73~18.04.1 5.4.0-66.74~18.04.2 5.4.0-67.75~18.04.1 5.4.0-70.78~18.04.1 5.4.0-71.79~18.04.1 5.4.0-72.80~18.04.1 5.4.0-73.82~18.04.1 5.4.0-74.83~18.04.1 5.4.0-77.86~18.04.1 5.4.0-80.90~18.04.1 5.4.0-81.91~18.04.1 5.4.0-84.94~18.04.1 5.4.0-86.97~18.04.1 5.4.0-87.98~18.04.1 5.4.0-89.100~18.04.1 5.4.0-90.101~18.04.1 5.4.0-91.102~18.04.1 5.4.0-92.103~18.04.2 5.4.0-94.106~18.04.1 5.4.0-96.109~18.04.1 5.4.0-97.110~18.04.1 5.4.0-99.112~18.04.1 5.4.0-100.113~18.04.1 5.4.0-104.118~18.04.1 5.4.0-105.119~18.04.1 5.4.0-107.121~18.04.1 5.4.0-109.123~18.04.1 5.4.0-110.124~18.04.1 5.4.0-113.127~18.04.1 5.4.0-117.132~18.04.1 5.4.0-121.137~18.04.1 5.4.0-120.136~18.04.1 5.4.0-122.138~18.04.1 5.4.0-124.140~18.04.1 5.4.0-125.141~18.04.1 5.4.0-126.142~18.04.1 5.4.0-128.144~18.04.1 5.4.0-131.147~18.04.1 5.4.0-132.148~18.04.1 5.4.0-133.149~18.04.1 5.4.0-135.152~18.04.2 5.4.0-136.153~18.04.1 5.4.0-137.154~18.04.1 5.4.0-139.156~18.04.1 5.4.0-144.161~18.04.1 5.4.0-146.163~18.04.1 5.4.0-147.164~18.04.1 5.4.0-148.165~18.04.1 5.4.0-149.166~18.04.1 5.4.0-150.167~18.04.1
Released
Debian 10
Planned
Debian 10 cloud
Planned
Ubuntu 20.04
5.4.0-31.35 show all hide all
5.4.0-28.32 5.4.0-34.38 5.4.0-26.30 5.4.0-29.33 5.4.0-30.34 5.4.0-37.41 5.4.0-40.44 5.4.0-32.36 5.4.0-33.37 5.4.0-38.42 5.4.0-39.43 5.4.0-42.46 5.4.0-45.49 5.4.0-47.51 5.4.0-48.52 5.4.0-43.47 5.4.0-44.48 5.4.0-51.56 5.4.0-49.53 5.4.0-52.57 5.4.0-53.59 5.4.0-54.60 5.4.0-56.62 5.4.0-58.64 5.4.0-46.50 5.4.0-55.61 5.4.0-57.63 5.4.0-59.65 5.4.0-60.67 5.4.0-62.70 5.4.0-64.72 5.4.0-61.69 5.4.0-63.71 5.4.0-65.73 5.4.0-66.74 5.4.0-67.75 5.4.0-70.78 5.4.0-71.79 5.4.0-72.80 5.4.0-73.82 5.4.0-74.83 5.4.0-77.86 5.4.0-80.90 5.4.0-81.91 5.4.0-84.94 5.4.0-86.97 5.4.0-88.99 5.4.0-89.100 5.4.0-90.101 5.4.0-91.102 5.4.0-92.103 5.4.0-94.106 5.4.0-96.109 5.4.0-97.110 5.4.0-99.112 5.4.0-100.113 5.4.0-104.118 5.4.0-105.119 5.4.0-107.121 5.4.0-109.123 5.4.0-110.124 5.4.0-113.127 5.4.0-117.132 5.4.0-121.137 5.4.0-120.136 5.4.0-112.126 5.4.0-122.138 5.4.0-124.140 5.4.0-125.141 5.4.0-126.142 5.4.0-128.144 5.4.0-131.147 5.4.0-132.148 5.4.0-133.149 5.4.0-135.152 5.4.0-136.153 5.4.0-137.154 5.4.0-139.156 5.4.0-144.161 5.4.0-123.139 5.4.0-146.163 5.4.0-147.164 5.4.0-148.165 5.4.0-149.166 5.4.0-150.167 5.4.0-145.162 5.4.0-152.169 5.4.0-153.170 5.4.0-155.172 5.4.0-156.173 5.4.0-159.176 5.4.0-162.179 5.4.0-163.180 5.4.0-164.181 5.4.0-165.182 5.4.0-166.183 5.4.0-167.184 5.4.0-169.187 5.4.0-170.188 5.4.0-171.189 5.4.0-172.190 5.4.0-173.191 5.4.0-174.193 5.4.0-176.196 5.4.0-177.197 5.4.0-181.201 5.4.0-182.202 5.4.0-186.206 5.4.0-187.207
Released
Ubuntu 18.04 Azure Focal
5.4.0-1032.33~18.04.1 show all hide all
5.4.0-1023.23~18.04.1 5.4.0-1031.32~18.04.1 5.4.0-1026.26~18.04.1 5.4.0-1022.22~18.04.1 5.4.0-1025.25~18.04.1 5.4.0-1035.36~18.04.1 5.4.0-1034.35~18.04.1 5.4.0-1029.29~18.04.1 5.4.0-1033.34~18.04.1 5.4.0-1036.38~18.04.1 5.4.0-1039.41~18.04.1 5.4.0-1040.42~18.04.1 5.4.0-1041.43~18.04.1 5.4.0-1043.45~18.04.1 5.4.0-1020.20~18.04.1 5.4.0-1044.46~18.04.1 5.4.0-1046.48~18.04.1 5.4.0-1047.49~18.04.1 5.4.0-1048.50~18.04.1 5.4.0-1049.51~18.04.1 5.4.0-1051.53~18.04.1 5.4.0-1055.57~18.04.1 5.4.0-1056.58~18.04.1 5.4.0-1058.60~18.04.1 5.4.0-1059.62~18.04.1 5.4.0-1062.65~18.04.1 5.4.0-1063.66~18.04.1 5.4.0-1061.64~18.04.1 5.4.0-1064.67~18.04.1 5.4.0-1065.68~18.04.1 5.4.0-1067.70~18.04.1 5.4.0-1068.71~18.04.1 5.4.0-1069.72~18.04.1 5.4.0-1070.73~18.04.1 5.4.0-1072.75~18.04.1 5.4.0-1073.76~18.04.1 5.4.0-1074.77~18.04.1 5.4.0-1077.80~18.04.1 5.4.0-1078.81~18.04.1 5.4.0-1080.83~18.04.2 5.4.0-1083.87~18.04.1 5.4.0-1085.90~18.04.1 5.4.0-1086.91~18.04.1 5.4.0-1089.94~18.04.1 5.4.0-1090.95~18.04.1 5.4.0-1091.96~18.04.1 5.4.0-1094.100~18.04.1 5.4.0-1098.104~18.04.2 5.4.0-1100.106~18.04.1 5.4.0-1101.107~18.04.1 5.4.0-1103.109~18.04.1 5.4.0-1104.110~18.04.1 5.4.0-1105.111~18.04.1 5.4.0-1106.112~18.04.1 5.4.0-1107.113~18.04.1 5.4.0-1108.114~18.04.1 5.4.0-1109.115~18.04.1
Released
Ubuntu 20.04 AWS
5.4.0-1030.31 show all hide all
5.4.0-1022.22 5.4.0-1028.29 5.4.0-1025.25 5.4.0-1020.20 5.4.0-1024.24 5.4.0-1018.18 5.4.0-1011.11 5.4.0-1015.15 5.4.0-1034.35 5.4.0-1032.33 5.4.0-1021.21 5.4.0-1023.23 5.4.0-1026.26 5.4.0-1029.30 5.4.0-1031.32 5.4.0-1033.34 5.4.0-1035.37 5.4.0-1036.38 5.4.0-1037.39 5.4.0-1017.17 5.4.0-1038.40 5.4.0-1039.41 5.4.0-1041.43 5.4.0-1016.16 5.4.0-1019.19 5.4.0-1043.45 5.4.0-1045.47 5.4.0-1047.49 5.4.0-1048.50 5.4.0-1049.51 5.4.0-1051.53 5.4.0-1054.57 5.4.0-1055.58 5.4.0-1056.59 5.4.0-1057.60 5.4.0-1058.61 5.4.0-1059.62 5.4.0-1060.63 5.4.0-1061.64 5.4.0-1063.66 5.4.0-1064.67 5.4.0-1068.72 5.4.0-1066.69 5.4.0-1069.73 5.4.0-1065.68 5.4.0-1071.76 5.4.0-1072.77 5.4.0-1073.78 5.4.0-1075.80 5.4.0-1078.84 5.4.0-1080.87 5.4.0-1074.79 5.4.0-1081.88 5.4.0-1083.90 5.4.0-1084.91 5.4.0-1085.92 5.4.0-1086.93 5.4.0-1088.96 5.4.0-1089.97 5.4.0-1092.100 5.4.0-1093.101 5.4.0-1094.102 5.4.0-1096.104 5.4.0-1097.105 5.4.0-1099.107 5.4.0-1100.108 5.4.0-1101.109 5.4.0-1102.110 5.4.0-1103.111 5.4.0-1104.112 5.4.0-1105.113 5.4.0-1106.114 5.4.0-1107.115 5.4.0-1108.116 5.4.0-1109.118 5.4.0-1110.119 5.4.0-1111.120 5.4.0-1112.121 5.4.0-1113.123 5.4.0-1114.124 5.4.0-1116.126 5.4.0-1117.127 5.4.0-1118.128 5.4.0-1119.129 5.4.0-1120.130 5.4.0-1121.131 5.4.0-1122.132 5.4.0-1123.133 5.4.0-1124.134 5.4.0-1125.135 5.4.0-1126.136 5.4.0-1127.137
Released
Ubuntu 20.04 Azure
5.4.0-1041.43 show all hide all
5.4.0-1040.42 5.4.0-1023.23 5.4.0-1034.35 5.4.0-1035.36 5.4.0-1031.32 5.4.0-1032.33 5.4.0-1039.41 5.4.0-1020.20 5.4.0-1026.26 5.4.0-1025.25 5.4.0-1043.45 5.4.0-1022.22 5.4.0-1036.38 5.4.0-1024.24 5.4.0-1027.27 5.4.0-1029.29 5.4.0-1033.34 5.4.0-1037.39 5.4.0-1038.40 5.4.0-1044.46 5.4.0-1046.48 5.4.0-1047.49 5.4.0-1048.50 5.4.0-1049.51 5.4.0-1051.53 5.4.0-1055.57 5.4.0-1056.58 5.4.0-1058.60 5.4.0-1059.62 5.4.0-1062.65 5.4.0-1063.66 5.4.0-1061.64 5.4.0-1064.67 5.4.0-1065.68 5.4.0-1067.70 5.4.0-1068.71 5.4.0-1069.72 5.4.0-1070.73 5.4.0-1072.75 5.4.0-1073.76 5.4.0-1074.77 5.4.0-1077.80 5.4.0-1078.81 5.4.0-1080.83 5.4.0-1083.87 5.4.0-1085.90 5.4.0-1086.91 5.4.0-1089.94 5.4.0-1090.95 5.4.0-1091.96 5.4.0-1094.100 5.4.0-1098.104 5.4.0-1100.106 5.4.0-1101.107 5.4.0-1103.109 5.4.0-1104.110 5.4.0-1105.111 5.4.0-1106.112 5.4.0-1107.113 5.4.0-1108.114 5.4.0-1109.115 5.4.0-1110.116 5.4.0-1111.117 5.4.0-1112.118 5.4.0-1113.119 5.4.0-1114.120 5.4.0-1115.122 5.4.0-1116.123 5.4.0-1117.124 5.4.0-1118.125 5.4.0-1119.126 5.4.0-1120.127 5.4.0-1121.128 5.4.0-1122.129 5.4.0-1123.130 5.4.0-1124.131 5.4.0-1126.133 5.4.0-1127.134 5.4.0-1128.135 5.4.0-1129.136 5.4.0-1130.137 5.4.0-1131.138 5.4.0-1132.139
Released
Ubuntu 16.04 ESM
Planned
Ubuntu 16.04 HWE ESM
Planned
Ubuntu 16.04 AWS ESM
Planned
Ubuntu 16.04 AWS HWE ESM
Planned
Ubuntu 16.04 Azure ESM
Planned
Ubuntu 22.04
Ready For Release
Ubuntu 22.04 AWS
Planned
Ubuntu 22.04 Azure
Planned
RHEL 9
Planned
Ubuntu 20.04 HWE AWS
Planned
Ubuntu 20.04 GCP
5.4.0-1068.72 show all hide all
5.4.0-1049.53 5.4.0-1069.73 5.4.0-1118.127 5.4.0-1120.129 5.4.0-1121.130 5.4.0-1122.131 5.4.0-1123.132 5.4.0-1124.133 5.4.0-1125.134 5.4.0-1126.135 5.4.0-1127.136 5.4.0-1128.137 5.4.0-1129.138 5.4.0-1130.139 5.4.0-1131.140
Released
Ubuntu 18.04 HWE GCP
5.4.0-1022.22~18.04.1 show all hide all
5.4.0-1068.72~18.04.1 5.4.0-1021.21~18.04.1 5.4.0-1024.24~18.04.1 5.4.0-1025.25~18.04.1 5.4.0-1028.29~18.04.1 5.4.0-1029.31~18.04.1 5.4.0-1030.32~18.04.1 5.4.0-1032.34~18.04.1 5.4.0-1033.35~18.04.1 5.4.0-1034.37~18.04.1 5.4.0-1036.39~18.04.1 5.4.0-1037.40~18.04.1 5.4.0-1038.41~18.04.1 5.4.0-1040.43~18.04.1
Released