В ядре Linux устранена следующая уязвимость:
vxlan: требуется CAP_NET_ADMIN в сети устройства для изменения ссылки
Туннель Changelink() работает не более чем с двумя сетями: dev_net(dev) и
липкая подложка netns vxlan->net. Они различаются, когда устройство
создан или перемещен в сеть netns, отличную от той, в которой выполняется запрос. Путь изменения ссылки rtnl проверяет CAP_NET_ADMIN только на соответствие dev_net(dev),
поэтому вызывающий абонент имеет привилегии там, но не в vxlan->net, может переписать vxlan
устройство, подложка которого находится в vxlan->net.
vxlan_changelink() проверяет и применяет новую конфигурацию
vxlan->net (vxlan_config_validate(vxlan->net, ...)) и может повторно открыть
подложный сокет в этом netns, поэтому причина та же, что и в туннеле
Здесь применяется серия изменений.
Ворота vxlan_changelink() с rtnl_dev_link_net_capable(), вверху
операция перед анализом любого атрибута, соответствующая ipgre_changelink() и
остальная часть «требует CAP_NET_ADMIN в сети устройства для
серия ChangeLink». Обнаружен с помощью автоматизированного инструмента исследования безопасности 0sec (https://0sec.ai).
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: vxlan: require CAP_NET_ADMIN in the device netns for changelink A tunnel changelink() operates on at most two netns, dev_net(dev) and the sticky underlay netns vxlan->net. They differ once the device is created in or moved to a netns other than the one the request runs in. The rtnl changelink path checks CAP_NET_ADMIN only against dev_net(dev), so a caller privileged there but not in vxlan->net can rewrite a vxlan device whose underlay lives in vxlan->net. vxlan_changelink() validates and applies the new configuration against vxlan->net (vxlan_config_validate(vxlan->net, ...)) and can reopen the underlay socket in that netns, so the same reasoning as the tunnel changelink series applies here. Gate vxlan_changelink() with rtnl_dev_link_net_capable(), at the top of the op before any attribute is parsed, matching ipgre_changelink() and the rest of the "require CAP_NET_ADMIN in the device netns for changelink" series. Found by 0sec automated security-research tooling (https://0sec.ai).
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.11
|
6.6.148
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.11
|
6.12.101
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.11
|
6.18.42
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.11
|
7.1.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.11
|
7.2-rc5
|