title: inet: read sk->sk_family once in inet_recv_error()
description: In the Linux kernel, the following vulnerability has been resolved:
inet: read sk->sk_family once in inet_recv_error()
inet_recv_error() is called without holding the socket lock.
IPv6 socket could mutate to IPv4 with IPV6_ADDRFORM
socket option and trigger a KCSAN warning.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: f4713a3dfad0, lessThan: caa064c3c239, status: affected, versionType: git
version: f4713a3dfad0, lessThan: 5993f121fbc0, status: affected, versionType: git
version: f4713a3dfad0, lessThan: 88081ba41522, status: affected, versionType: git
version: f4713a3dfad0, lessThan: 3266e638ba5c, status: affected, versionType: git
version: f4713a3dfad0, lessThan: 54538752216b, status: affected, versionType: git
version: f4713a3dfad0, lessThan: 4a5e31bdd3c1, status: affected, versionType: git
version: f4713a3dfad0, lessThan: 307fa8a75ab7, status: affected, versionType: git
version: f4713a3dfad0, lessThan: eef00a82c568, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 3.18, status: affected
version: 0, lessThan: 3.18, status: unaffected, versionType: custom
version: 4.19.307, lessThanOrEqual: 4.19.*, status: unaffected, versionType: custom
version: 5.4.269, lessThanOrEqual: 5.4.*, status: unaffected, versionType: custom
version: 5.10.210, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.15.149, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 6.1.78, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.6.17, lessThanOrEqual: 6.6.*, status: unaffected, versionType: custom
version: 6.7.5, lessThanOrEqual: 6.7.*, status: unaffected, versionType: custom
version: 6.8, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
