CVE-2022-25258
Vulnerability Summary
Timeline
Description
An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array index and ones associated with NULL function pointer retrieval). Memory corruption might occur.
CVSS Metrics
- v4.0•MEDIUM•Score: 5.1CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- v3.1•MEDIUM•Score: 4.6CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- v2.0•MEDIUM•Score: 4.9AV:L/AC:L/Au:N/C:N/I:N/A:C
EPSS Trends
Current EPSS score: 0.93%• Percentile: 59%
Techniques & Countermeasures
- CWE-476•NULL Pointer Dereference
The product dereferences a pointer that it expects to be valid but is NULL.
Affected Systems
- debian•linux
< 5.10.92-2 | < 5.16.10-1 | < 5.16.10-1 | < 5.16.10-1
- ubuntu•linux
< 4.4.0-230.264 | < 4.15.0-177.186 | < 5.4.0-110.124
- ubuntu•linux-aws
< 4.4.0-1110.116 | < 4.4.0-1146.161 | < 4.15.0-1128.137 | < 5.4.0-1073.78
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
< 5.13.0-1023.25~20.04.1
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1075.80~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-fips
< 4.15.0-2067.70 | all | < 5.4.0-1073.78+fips1
- ubuntu•linux-aws-hwe
< 4.15.0-1128.137~16.04.1
- ubuntu•linux-azure
< 4.15.0-1138.151~14.04.1 | < 4.15.0-1138.151~16.04.1 | all | < 5.4.0-1078.81
- ubuntu•linux-azure-4.15
< 4.15.0-1138.151
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
< 5.13.0-1023.27~20.04.1
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1078.81~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fips
< 4.15.0-2049.53 | all | < 5.4.0-1078.81+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1040.44
- ubuntu•linux-dell300x
< 4.15.0-1042.47
- ubuntu•linux-fips
< 4.4.0-1080.87 | all | < 4.15.0-1085.94 | < 5.4.0-1049.55
- ubuntu•linux-gcp
< 4.15.0-1122.136~16.04.1 | all | < 5.4.0-1073.78
- ubuntu•linux-gcp-4.15
< 4.15.0-1122.136
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
< 5.13.0-1025.30~20.04.1
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1073.78~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-fips
< 4.15.0-2032.35 | all | < 5.4.0-1073.78+fips1
- ubuntu•linux-gke
< 5.4.0-1071.76
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.4
< 5.4.0-1071.76~18.04.3
- ubuntu•linux-gkeop
< 5.4.0-1040.41
- ubuntu•linux-gkeop-5.4
< 5.4.0-1040.41~18.04.1
- ubuntu•linux-hwe
< 4.15.0-177.186~16.04.1 | all
- ubuntu•linux-hwe-5.11
all
- ubuntu•linux-hwe-5.13
< 5.13.0-41.46~20.04.1
- ubuntu•linux-hwe-5.4
< 5.4.0-110.124~18.04.1
- ubuntu•linux-hwe-5.8
all
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-ibm
< 5.4.0-1021.23
- ubuntu•linux-ibm-5.4
< 5.4.0-1021.23~18.04.1
- ubuntu•linux-intel-5.13
all
- ubuntu•linux-intel-iot-realtime
all
- ubuntu•linux-intel-iotg-5.15
< 5.15.0-1008.11~20.04.1
- ubuntu•linux-iot
< 5.4.0-1004.6
- ubuntu•linux-kvm
< 4.4.0-1111.121 | < 4.15.0-1114.117 | < 5.4.0-1063.66
- ubuntu•linux-lts-xenial
< 4.4.0-230.264~14.04.1
Showing first 50 affected entries in server-rendered view.
References (16)
- https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c
- https://github.com/szymonh/d-os-descriptor
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16.10
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TCW2KZYJ2H6BKZE3CVLHRIXYDGNYYC5P/
- https://www.debian.org/security/2022/dsa-5092
- https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html
- https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html
- https://www.debian.org/security/2022/dsa-5096
- https://security.netapp.com/advisory/ntap-20221028-0007/
- https://ubuntu.com/security/CVE-2022-25258
- https://ubuntu.com/security/notices/USN-5415-1
- https://ubuntu.com/security/notices/USN-5417-1
- https://ubuntu.com/security/notices/USN-5418-1
- https://ubuntu.com/security/notices/USN-5540-1
- https://www.cve.org/CVERecord?id=CVE-2022-25258
- https://security-tracker.debian.org/tracker/CVE-2022-25258