Bug 13919

Summary: [CVE 21] openssh 8.8p1 CVEs found
Product: [ROSA-based products] ROSA Fresh Reporter: Yury <y.tumanov>
Component: System (kernel, glibc, systemd, bash, PAM...)Assignee: Mikhail Novosyolov <m.novosyolov>
Status: RESOLVED DUPLICATE QA Contact: ROSA Linux Bugs <bugs>
Severity: blocker    
Priority: Highest CC: a.proklov, e.kosachev, m.novosyolov, pastordidi, s.matveev, temap, v.potapov, y.tumanov
Version: AllFlags: v.potapov: qa_verified-
y.tumanov: secteam_verified?
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: CVE-2021-36368, CVE-2021-41617, CVE-2023-38408,
Whiteboard:
Platform: 2021.1 ROSA Vulnerability identifier:
RPM Package: ISO-related:
Bad POT generating: Upstream:
Attachments: gcr1.png

Description Yury 2023-10-18 20:29:49 MSK
Please patch CVEs for package openssh version 8.8p1
  
INFO (CVEs are): openssh 8.8p1
 cves found
CVE-2021-36368
Desc: ** DISPUTED ** An issue was discovered in OpenSSH before 8.9. If a client is using public-key authentication with agent forwarding but without -oLogLevel=verbose, and an attacker has silently modified the server to support the None authentication option, then the user cannot determine whether FIDO authentication is going to confirm that the user wishes to connect to that server, or that the user wishes to allow that server to connect to a different server on the user's behalf. NOTE: the vendor's position is "this is not an authentication bypass, since nothing is being bypassed."
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-36368
Severity: LOW
CVE-2021-41617
Desc: sshd in OpenSSH 6.2 through 8.x before 8.8, when certain non-default configurations are used, allows privilege escalation because supplemental groups are not initialized as expected. Helper programs for AuthorizedKeysCommand and AuthorizedPrincipalsCommand may run with privileges associated with group memberships of the sshd process, if the configuration specifies running the command as a different user.
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-41617
Severity: HIGH
CVE-2023-38408
Desc: The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in /usr/lib is not necessarily safe for loading into ssh-agent.) NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.
Link: https://nvd.nist.gov/vuln/detail/CVE-2023-38408
Severity: CRITICAL
Comment 1 Vladimir Potapov 2023-10-20 18:04:48 MSK
*** Bug 13787 has been marked as a duplicate of this bug. ***
Comment 2 Vladimir Potapov 2023-10-20 18:05:02 MSK
*** Bug 13565 has been marked as a duplicate of this bug. ***
Comment 3 Aleksandr Proklov 2023-10-25 08:21:32 MSK
CVE-2021-36368 - отклонено разработчиками
CVE-2021-41617 - закрыто патчем
CVE-2023-38408 - закрыто патчем

openssh	8.8p1-9

https://abf.io/build_lists/4761366
https://abf.io/build_lists/4761367
https://abf.io/build_lists/4761368
https://abf.io/build_lists/4761369
https://abf.io/build_lists/4761370
Comment 4 Dmitry Postnikov 2023-10-25 12:59:55 MSK
*****************************
Обновление отослано в Тестинг
Comment 5 Mikhail Novosyolov 2023-10-27 11:20:30 MSK
Обновление вызвало регрессию. Для воспроизведения, до обновления:
1. Создаем пару ключей с паролем (обязательно установить пароль):
ssh-keygen
2. Добавляем ~/.ssh/id_rsa.pub в ABF:
https://abf.io/settings/ssh_keys
3. Пробуем авторизоваться на ABF:
ssh git@abf.io
4. Вылезет графическое окошко с запросом пароля
5. Вводим пароль
6. Пробуем ssh git@abf.io еще раз, пароль снова не спрашивает до перезагрузки.

Это благодаря SSH-агенту:
systemctl --user status gcr-ssh-agent.socket
systemctl --user status gcr-ssh-agent.service

Теперь ставим обновления, перезагружаемся. Делаем:
ssh git@abf.io
Графическое окно больше не появляется.

Ставим альтернативный ssh-клиент:
sudo dnf install /usr/bin/dbclient
Подключаемся через него:
dbclient git@abf.io
Графическое окно вылезло.

Делаем sudo dnf downgrade openssh-clients и видим, что проблема исправляется.
Comment 6 Dmitry Postnikov 2023-10-31 10:06:30 MSK
Created attachment 5973 [details]
gcr1.png

Воспроизвел, с прошлой версией openssh все норм, с этой версией, при входе по ssh по ключу, начинает дампиться gcr-ssh-agent.
Comment 7 Aleksandr Proklov 2023-10-31 11:15:15 MSK
ну и все, отмена тогда, меняйте статус на WONFIX или чего там. Или пусть кто-то другой попробует накатить эти патчи.
Comment 8 Vladimir Potapov 2023-10-31 11:16:33 MSK
**********************
QA Denied
Comment 9 Yury 2023-11-07 10:25:14 MSK
Ждём-с
Comment 10 Vladimir Potapov 2024-01-02 20:05:59 MSK

*** This bug has been marked as a duplicate of bug 14150 ***