В ядре Linux устранена следующая уязвимость:
apparmor: обеспечивает неявное соединение TCP, быстрое открытие sendmsg
sendmsg()/sendto() с MSG_FASTOPEN представляет собой комбинацию Connect(2) и
write(2): он открывает соединение в SYN. apparmor_socket_sendmsg()
проверяет только AA_MAY_SEND, поэтому профиль, который разрешает отправку, но запрещает подключение
позволяет ограниченной задаче открыть исходящее TCP/MPTCP-соединение, которое Connect(2)
отказался бы, минуя посредничество Connect.
Опосредовать неявное соединение, когда установлен MSG_FASTOPEN и указан пункт назначения.
поставляется. Добавьте его в apparmor_socket_sendmsg() (не в общий
помощник aa_sock_msg_perm(), который также использует Recvmsg) и вызовите aa_sk_perm()
напрямую, отражая исправления selinux и tomoyo. sk_is_tcp() не делает
крышка MPTCP быстро открывается, поэтому рука SOCK_STREAM/IPPROTO_MPTCP является явной.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: apparmor: mediate the implicit connect of TCP fast open sendmsg sendmsg()/sendto() with MSG_FASTOPEN is a combination of connect(2) and write(2): it opens the connection in the SYN. apparmor_socket_sendmsg() only checks AA_MAY_SEND, so a profile that grants send but denies connect lets a confined task open an outbound TCP/MPTCP connection that connect(2) would have refused, bypassing connect mediation. Mediate the implicit connect when MSG_FASTOPEN is set and a destination is supplied. Add it to apparmor_socket_sendmsg() (not the shared aa_sock_msg_perm() helper, which recvmsg also uses) and call aa_sk_perm() directly, mirroring the selinux and tomoyo fixes. sk_is_tcp() does not cover MPTCP fast open, so the SOCK_STREAM/IPPROTO_MPTCP arm is explicit.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.6
|
5.10.261
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.212
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.177
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.144
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.95
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.38
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.1.3
|