Перейти к содержимому
Noroxi
CVE-2022-48853· NVD / CVE Program· CNA Linux

Reinstate some of "swiotlb: rework "fix info leak with DMA_FROM_DEVICE""

In the Linux kernel, the following vulnerability has been resolved: swiotlb: fix info leak with DMA_FROM_DEVICE The problem I'm addressing was discovered by the LTP test covering cve-2018-1000204. A short description of what happens follows: 1) The test case issues a command code 00 (TEST UNIT READY) via the SG_IO interface with: dxfer_len == 524288, dxdfer_dir == SG_DXFER_FROM_DEV and a corresponding dxferp. The peculiar thing about this is that TUR is not reading from the device. 2) In sg_start_req() the invocation of blk_rq_map_user() effectively bounces the user-space buffer. As if the device was to transfer into it. Since commit a45b599ad808 ("scsi: sg: allocate with __GFP_ZERO in sg_build_indirect()") we make sure this first bounce buffer is allocated with GFP_ZERO. 3) For the rest of the story we keep ignoring that we have a TUR, so the device won't touch the buffer we prepare as if the we had a DMA_FROM_DEVICE type of situation. My setup uses a virtio-scsi device and the buffer allocated by SG is mapped by the function virtqueue_add_split() which uses DMA_FROM_DEVICE for the "in" sgs (here scatter-gather and not scsi generics). This mapping involves bouncing via the swiotlb (we need swiotlb to do virtio in protected guest like s390 Secure Execution, or AMD SEV). 4) When the SCSI TUR is done, we first copy back the content of the second (that is swiotlb) bounce buffer (which most likely contains some previous IO data), to the first bounce buffer, which contains all zeros. Then we copy back the content of the first bounce buffer to the user-space buffer. 5) The test case detects that the buffer, which it zero-initialized, ain't all zeros and fails. One can argue that this is an swiotlb problem, because without swiotlb we leak all zeros, and the swiotlb should be transparent in a sense that it does not affect the outcome (if all other participants are well behaved). Copying the content of the original buffer into the swiotlb buffer is the only way I can think of to make swiotlb transparent in such scenarios. So let's do just that if in doubt, but allow the driver to tell us that the whole mapped buffer is going to be overwritten, in which case we can preserve the old behavior and avoid the performance impact of the extra bounce.

СредняяCVSS 5.5 · v3.1—Эксплойта нет Есть исправление

Анализ Noroxi

Анализа Noroxi для этой записи пока нет

Мы не пишем анализ вручную для сотен тысяч уязвимостей в базе; это было бы нечестно. Для значимых уязвимостей с реальным влиянием наша команда описывает механизм, обнаружение и устранение.

Мы используем этот продукт, нужна помощь
Опубликовано
16 июл. 2024 г.
Обновлено
17 июн. 2026 г.
EPSS
0,3 % · 17-й процентиль
CWE
—
Следить за этой CVE

Войдите, чтобы следить · Вы получите уведомление, если запись попадёт в KEV, получит эксплойт или обновится.

Инструменты для отчёта

JSON

Оценка срочности

22

Наблюдать

Пока низкий приоритет.

CVSS
22 / 40 · 5.5 / 10
CISA KEV
0 / 30 · Нет в списке
EPSS
0 / 30 · 0,3 %

Решение CISA SSVC

Эксплуатация
нет
Автоматизируемо
нет
Техническое влияние
частичное

Vulnrichment: входные данные дерева решений CISA.

Затронутые системы

ВендорПродукт
linuxlinux kernel

Затронутые версии

Диапазоны версий NVD (для продуктов из каталога). Добавьте продукт в стек с версией, и сопоставление будет по ним.

  • linux linux kernelдо 4.9.320
  • linux linux kernel4.10 и новее · до 4.14.281
  • linux linux kernel4.15 и новее · до 4.19.245
  • linux linux kernel4.20 и новее · до 5.4.189
  • linux linux kernel5.5 и новее · до 5.10.110
  • linux linux kernel5.11 и новее · до 5.15.29
  • linux linux kernel5.16 и новее · до 5.16.15

Версии, заявленные вендором

Диапазоны затронутых версий, заявленные назначающей организацией (Linux). Не зависят от анализа CPE в NVD и обычно опережают его.

  • Linux Linux

    • 2.6.12затронута
    • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 и новее · до fd97de9c7b973f46a6103f4170c5efc7b8ef8797затронута · git
    • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 и новее · до aaf166f37eb6bb55d81c3e40a2a460c8875c8813затронута · git
    • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 и новее · до 06cb238b0f7ac1669cb06390704c61794724c191затронута · git
    • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 и новее · до b2f140a9f980806f572d672e1780acea66b9a25cзатронута · git
    • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 и новее · до f3f2247ac31cb71d1f05f56536df5946c6652f4aзатронута · git
    • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 и новее · до 7007c894631cf43041dcfa0da7142bbaa7eb673cзатронута · git
    • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 и новее · до dcead36b19d999d687cd9c99b7f37520d9102b57затронута · git
    • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 и новее · до f2141881b530738777c28bb51c62175895c8178bзатронута · git
    • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 и новее · до 901c7280ca0d5e2b4a8929fbe0bfb007ac2a6544затронута · git

Затронутые пакеты

Данные OSV и GitHub Advisory: экосистема, пакет и диапазон. Сопоставление SBOM использует эту таблицу.

ЭкосистемаПакетЗатронутый диапазонИсправление
Debian:12linuxдо 5.16.18-15.16.18-1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSkernel-default-baseдо 5.3.18-150200.24.203.1.150200.9.105.15.3.18-150200.24.203.1.150200.9.105.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSkernel-docsдо 5.3.18-150200.24.203.15.3.18-150200.24.203.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSkernel-obs-buildдо 5.3.18-150200.24.203.15.3.18-150200.24.203.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSkernel-preemptдо 5.3.18-150200.24.203.15.3.18-150200.24.203.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSkernel-sourceдо 5.3.18-150200.24.203.15.3.18-150200.24.203.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSkernel-symsдо 5.3.18-150200.24.203.15.3.18-150200.24.203.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSkernel-64kbдо 5.14.21-150400.24.194.15.14.21-150400.24.194.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSkernel-docsдо 5.14.21-150400.24.194.15.14.21-150400.24.194.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSkernel-obs-buildдо 5.14.21-150400.24.194.15.14.21-150400.24.194.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSkernel-sourceдо 5.14.21-150400.24.194.15.14.21-150400.24.194.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSkernel-symsдо 5.14.21-150400.24.194.15.14.21-150400.24.194.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSkernel-64kbдо 5.14.21-150500.55.133.15.14.21-150500.55.133.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSkernel-docsдо 5.14.21-150500.55.133.15.14.21-150500.55.133.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSkernel-obs-buildдо 5.14.21-150500.55.133.15.14.21-150500.55.133.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSkernel-symsдо 5.14.21-150500.55.133.15.14.21-150500.55.133.1
SUSE:Linux Enterprise Live Patching 12 SP5kernel-defaultдо 4.12.14-122.237.14.12.14-122.237.1
SUSE:Linux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_63до 1-8.3.11-8.3.1
SUSE:Linux Enterprise Live Patching 15 SP2kernel-defaultдо 5.3.18-150200.24.203.15.3.18-150200.24.203.1
SUSE:Linux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_52до 1-150200.5.3.11-150200.5.3.1
SUSE:Linux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_48до 1-150400.9.7.11-150400.9.7.1
SUSE:Linux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_34до 1-150500.11.3.11-150500.11.3.1
SUSE:Linux Enterprise Micro 5.2kernel-defaultдо 5.3.18-150300.59.232.15.3.18-150300.59.232.1
SUSE:Linux Enterprise Micro 5.2kernel-default-baseдо 5.3.18-150300.59.232.1.150300.18.138.15.3.18-150300.59.232.1.150300.18.138.1

+15

Тот же продукт

linux: все записи

Другие записи с наивысшей оценкой для того же основного продукта.

  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV
    89Срочно
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Срочно
  • CVE-2016-5195Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect haKEV
    83Срочно
  • CVE-2019-13272In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to creKEV
    77На этой неделе
  • CVE-2013-6282The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the v6k and v7 ARM platforms do not validate certain addKEV
    77На этой неделе
  • CVE-2013-2094The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, which allows loKEV
    77На этой неделе

Исправление

На какую версию обновиться

Версии с исправлением по данным вендора, реестров пакетов и Microsoft. Перед обновлением сверьтесь с бюллетенем вендора.

Продукт / пакетИсправленная версияИсточник
Linux Linux06cb238b0f7ac1669cb06390704c61794724c191Вендор (CNA)
Linux Linux7007c894631cf43041dcfa0da7142bbaa7eb673cВендор (CNA)
Linux Linux901c7280ca0d5e2b4a8929fbe0bfb007ac2a6544Вендор (CNA)
Linux Linuxaaf166f37eb6bb55d81c3e40a2a460c8875c8813Вендор (CNA)
Linux Linuxb2f140a9f980806f572d672e1780acea66b9a25cВендор (CNA)
Linux Linuxdcead36b19d999d687cd9c99b7f37520d9102b57Вендор (CNA)
Linux Linuxf2141881b530738777c28bb51c62175895c8178bВендор (CNA)
Linux Linuxf3f2247ac31cb71d1f05f56536df5946c6652f4aВендор (CNA)
Linux Linuxfd97de9c7b973f46a6103f4170c5efc7b8ef8797Вендор (CNA)
debian:linux5.16.18-1 · Debian:12Реестр пакетов (OSV)
suse:kernel-default5.3.18-150200.24.203.1 · SUSE:Linux Enterprise Live Patching 15 SP2Реестр пакетов (OSV)
suse:kernel-default-base5.3.18-150200.24.203.1.150200.9.105.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSРеестр пакетов (OSV)
suse:kernel-docs5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSРеестр пакетов (OSV)
suse:kernel-livepatch-SLE15-SP2_Update_521-150200.5.3.1 · SUSE:Linux Enterprise Live Patching 15 SP2Реестр пакетов (OSV)
suse:kernel-livepatch-SLE15-SP5_Update_341-150500.11.3.1 · SUSE:Linux Enterprise Live Patching 15 SP5Реестр пакетов (OSV)
suse:kernel-obs-build5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSРеестр пакетов (OSV)
suse:kernel-preempt5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSРеестр пакетов (OSV)
suse:kernel-rt5.14.21-150500.13.118.1 · SUSE:Linux Enterprise Micro 5.5Реестр пакетов (OSV)
suse:kernel-source5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSРеестр пакетов (OSV)
suse:kernel-source-rt5.14.21-150500.13.118.1 · SUSE:Linux Enterprise Micro 5.5Реестр пакетов (OSV)
suse:kernel-syms5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSРеестр пакетов (OSV)
suse:kgraft-patch-SLE12-SP5_Update_631-8.3.1 · SUSE:Linux Enterprise Live Patching 12 SP5Реестр пакетов (OSV)

Статус эксплойта

Публичный эксплойт неизвестен

Публичный эксплойт пока не обнаружен. Это не значит, что вы в безопасности, лишь что порог чуть выше.

Контекст для исследователя

Для пентестеров и исследователей: профиль атаки, расхождение оценок, хронология, коммиты исправлений, авторы, кандидаты в варианты и цепочки, охват bug bounty. Всё выводится из имеющихся данных; без кода эксплойтов.

Хронология

От публикации до сегодня: proof of concept, модуль Metasploit, CISA KEV и запись об исправлении. Даты — как сообщают источники.

Кроме публикации датированных событий нет.

EPSS за 120 дней

Ежедневная оценка FIRST EPSS; записываются только изменения от 0,01 (ступенчатый график).

Ссылки на патчи и коммиты

Коммиты, PR и diff среди источников. Отправная точка для patch-diff и поиска вариантов; это исправления, не эксплойты.

Среди источников нет ссылок на коммит или PR.

Нашедшие, сообщившие и аналитики, названные в записи CNA. Нажмите имя, чтобы увидеть другие записи исследователя.

В записи CNA нет авторов.

Кандидаты в варианты

Тот же продукт, тот же класс уязвимости, в пределах 18 месяцев. Если патч не закрыл первопричину, родственная ошибка здесь.

Ночной расчёт связей ничего не нашёл.

Кандидаты в цепочки

Обход аутентификации и уязвимость, требующая привилегий, в одном продукте и близко по времени: вместе они могут дать путь без аутентификации.

—

Охват bug bounty

Известной публичной программы нет.

Источник: bounty-targets-data (публичные списки HackerOne, Bugcrowd, Intigriti, YesWeHack).

Технические детали

Условия атаки

  • Может быть вызвана пользователем с локальным доступом к системе.
  • Достаточно учётной записи с низкими привилегиями.
  • Действия пользователя не требуются.
  • Особые условия не требуются; воспроизводится стабильно.

В случае успеха

Конфиденциальность
высокое · данные могут быть прочитаны
Целостность
нет
Доступность
нет
Вектор атаки
Локальный
Сложность атаки
Низкая
Требуемые привилегии
Низкие
Взаимодействие с пользователем
Не требуется
Область действия
Не изменяется
Влияние на конфиденциальность
Высокое
Влияние на целостность
Нет
Влияние на доступность
Нет

Класс уязвимости (CWE)

—

Вектор CVSS

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

nvd-primary

Контекст атаки

Шаблоны атак MITRE CAPEC и техники ATT&CK для этого класса уязвимости (CWE). Отправная точка для правил обнаружения и threat hunting.

У MITRE нет сопоставления CAPEC/ATT&CK для этого CWE.

Журнал изменений

  1. Исправление✗ → ✓

Для отслеживаемых записей эти изменения приходят и как уведомления. →

Источники

Все записи