CVE-2021-4203
Vulnerability Summary
Timeline
Description
A use-after-free read flaw was found in sock_getsockopt() in net/core/sock.c due to SO_PEERCRED and SO_PEERGROUPS race with listen() (and connect()) in the Linux kernel. In this flaw, an attacker with a user privileges may crash the system or leak internal kernel information.
CVSS Metrics
- v4.0•HIGH•Score: 7.3CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- v3.1•MEDIUM•Score: 6.8CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
- v2.0•MEDIUM•Score: 4.9AV:N/AC:M/Au:S/C:P/I:N/A:P
EPSS Trends
Current EPSS score: 1.75%• Percentile: 77%
Techniques & Countermeasures
- CWE-362•Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
- CWE-416•Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Affected Systems
- debian•linux
< 5.10.84-1 | < 5.14.12-1 | < 5.14.12-1 | < 5.14.12-1
- ubuntu•linux
all | < 4.4.0-239.273 | < 4.15.0-163.171 | < 5.4.0-91.102
- ubuntu•linux-aws
< 4.4.0-1117.123 | < 4.4.0-1155.170 | < 4.15.0-1116.123 | < 5.4.0-1060.63
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
< 5.11.0-1023.24~20.04.1
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1060.63~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-fips
< 4.15.0-2057.59 | all | < 5.4.0-1069.73+fips2
- ubuntu•linux-aws-hwe
< 4.15.0-1116.123~16.04.1
- ubuntu•linux-azure
< 4.15.0-1127.140~14.04.1 | < 4.15.0-1127.140~16.04.1 | all | < 5.4.0-1064.67
- ubuntu•linux-azure-4.15
< 4.15.0-1127.140
- ubuntu•linux-azure-5.11
< 5.11.0-1023.24~20.04.1
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1064.67~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fips
< 4.15.0-2039.43 | all | < 5.4.0-1073.76+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1022.25
- ubuntu•linux-dell300x
< 4.15.0-1031.36
- ubuntu•linux-fips
< 4.4.0-1088.95 | all | < 4.15.0-1073.82 | < 5.4.0-1037.43
- ubuntu•linux-gcp
< 4.15.0-1112.126~16.04.1 | all | < 5.4.0-1058.62
- ubuntu•linux-gcp-4.15
< 4.15.0-1112.126
- ubuntu•linux-gcp-5.11
< 5.11.0-1024.26~20.04.1
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1058.62~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-fips
< 4.15.0-2022.24 | all | < 5.4.0-1067.71~20.04.1
- ubuntu•linux-gke
< 5.4.0-1056.59
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.4
< 5.4.0-1056.59~18.04.1
- ubuntu•linux-gkeop
< 5.4.0-1027.28
- ubuntu•linux-gkeop-5.4
< 5.4.0-1027.28~18.04.1
- ubuntu•linux-hwe
< 4.15.0-163.171~16.04.1 | all
- ubuntu•linux-hwe-5.11
all
- ubuntu•linux-hwe-5.13
< 5.13.0-23.23~20.04.2
- ubuntu•linux-hwe-5.4
< 5.4.0-91.102~18.04.1
- ubuntu•linux-hwe-5.8
all
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-ibm
< 5.4.0-1008.9
- ubuntu•linux-intel-5.13
all
- ubuntu•linux-intel-iot-realtime
all
- ubuntu•linux-kvm
< 4.4.0-1118.128 | < 4.15.0-1103.105 | < 5.4.0-1050.52
- ubuntu•linux-lts-xenial
< 4.4.0-239.273~14.04.1
- ubuntu•linux-oem
all
- ubuntu•linux-oem-5.10
< 5.10.0-1051.53
- ubuntu•linux-oem-5.13
< 5.13.0-1026.32
- ubuntu•linux-oem-5.14
< 5.14.0-1007.7
- ubuntu•linux-oem-5.6
all
- ubuntu•linux-oracle
< 4.15.0-1084.92~16.04.1 | < 4.15.0-1084.92 | < 5.4.0-1058.62
Showing first 50 affected entries in server-rendered view.
References (14)
- https://bugzilla.redhat.com/show_bug.cgi?id=2036934
- https://bugs.chromium.org/p/project-zero/issues/detail?id=2230&can=7&q=modified-after%3Atoday-30&sort=-modified&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Modified%20Cve&cells=tiles&redir=1
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=35306eb23814
- https://lore.kernel.org/netdev/20210929225750.2548112-1-eric.dumazet%40gmail.com/T/
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20221111-0003/
- https://ubuntu.com/security/CVE-2021-4203
- https://bugs.chromium.org/p/project-zero/issues/detail?id=2230
- https://git.kernel.org/linus/35306eb23814444bd4021f8a1c3047d3cb0c8b2b
- https://ubuntu.com/security/notices/USN-6001-1
- https://ubuntu.com/security/notices/USN-6013-1
- https://ubuntu.com/security/notices/USN-6014-1
- https://www.cve.org/CVERecord?id=CVE-2021-4203
- https://security-tracker.debian.org/tracker/CVE-2021-4203