В ядре Linux была устранена следующая уязвимость: autofs: игнорирование ошибок уведомлений из замененной трубы autofs_notify_daemon() принимает ссылку на текущую трубку уведомлений под wq_mutex, затем сбрасывает мьютекс перед написанием запроса. Запись может блокироваться, пока демон входит в кататонический режим и устанавливает сменную трубу. Если считыватель старой трубы затем закрыт, задержка записи возвращает -EPIPE, и общий путь ошибки снова переходит в кататонический режим.
Этот переход воздействует на текущее состояние суперблока, закрывает трубу замены и освобождает очереди ожидания нового поколения демонов. Введите только кататонический режим, когда труба, которая вышла из строя, все еще является текущей трубой. Фактор уже заблокированного перехода, поэтому проверка идентичности и изменение состояния являются атомарными по отношению к другой замене.
Это было воспроизведено на v7.3-rc5-337-gff47652a4b66c у местного гостя QEMU. Непривилегированный поиск UID 65534 заполнил старую пакетную трубу перед обычным перезапуском CATATONIC / SETPIPEFD. На немодифицированном ядре новая трубка получила HUP и как ожидающий поиск жертвы, так и более поздний поиск не удался с ENOENT в двух из двух свежих трасс.
С этим изменением новая труба осталась активной, получила неповрежденный 304-байтный запрос, и оба поиска жертвы были завершены в двух из двух прогонов. Обычный поиск и контроль restart-without-a-blocked-writer прошли. KASAN, oops, refcount, или блокировки диагностики не наблюдалось. Источник воспроизведения и полные локальные журналы доступны в частном порядке по запросу.
Продемонстрированный эффект ограничивается отказом в общем обслуживании autofs во время законного перезапуска демона. Никакого повреждения памяти, утечки информации, увеличения привилегий или примитивного выполнения кода не наблюдалось.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: autofs: ignore notification errors from a replaced pipe autofs_notify_daemon() takes a reference to the current notification pipe under wq_mutex, then drops the mutex before writing the request. The write can block while the daemon enters catatonic mode and installs a replacement pipe. If the old pipe's reader is then closed, the delayed write returns -EPIPE and the generic error path enters catatonic mode again. That transition acts on the current superblock state, closes the replacement pipe, and releases the new daemon generation's wait queues. Only enter catatonic mode when the pipe which failed is still the current pipe. Factor the already-locked transition so the identity check and state change are atomic with respect to another replacement. This was reproduced on v7.3-rc5-337-gff47652a4b66c in a local QEMU guest. An unprivileged UID 65534 lookup filled the old packet pipe before a normal CATATONIC/SETPIPEFD restart. On the unmodified kernel, the new pipe received HUP and both a pending victim lookup and a later lookup failed with ENOENT in two out of two fresh-mount runs. With this change, the new pipe remained active, received an intact 304-byte request, and both victim lookups completed in two out of two runs. Normal lookup and restart-without-a-blocked-writer controls passed. No KASAN, oops, refcount, or lock diagnostic was observed. A source reproducer and complete local logs are available privately on request. The demonstrated impact is limited to denial of a shared autofs service during a legitimate daemon restart. No memory corruption, information leak, privilege escalation, or code execution primitive was observed.
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.28
|
5.10.273
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.28
|
5.15.224
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.28
|
6.1.191
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.28
|
6.6.161
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.28
|
6.12.115
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.28
|
6.18.59
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.28
|
7.2.13
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.28
|
7.3
|