Описание
In the Linux kernel, the following vulnerability has been resolved:
kho: make sure scratch size is always aligned by CMA_MIN_ALIGNMENT_BYTES
When using scratch_scale, the scratch sizes are rounded up to
CMA_MIN_ALIGNMENT_BYTES since they will be released as MIGRATE_CMA. This
is not done when using fixed scratch sizes via command line. This can
result in user specifying a size which is not aligned, and thus kernel
releasing a pageblock that is only partially scratch.
Do the rounding up for both cases in scratch_size_update().
A flaw was found in the Linux kernel's 'kho' component, responsible for memory management. When a user specifies fixed scratch sizes via the command line, these sizes are not consistently aligned to 'CMA_MIN_ALIGNMENT_BYTES'. This can result in the kernel releasing a pageblock that is only partially used for scratch, potentially leading to memory corruption or system instability.
Отчет
A flaw of Moderate security impact was found in the Linux kernel's kexec handover (kho) subsystem. When fixed kho scratch-region sizes are specified on the kernel command line, the sizes are not rounded up to CMA_MIN_ALIGNMENT_BYTES, unlike the sizes derived from the scratch_scale option. Because these scratch pages are later released as MIGRATE_CMA, an unaligned fixed size can cause the kernel to release a pageblock that is only partially scratch, potentially leading to memory corruption or system instability (denial of service). Triggering the flaw requires local access with the ability to set the kernel command-line parameters that define the kho scratch size. The vulnerable kho code is not present in the Red Hat Enterprise Linux and Red Hat In-Vehicle OS kernels shipped in currently maintained streams, so all tracked Red Hat kernel, kernel-rt, kernel-ivos-qualcomm, and related components are marked not affected for this flaw.
Меры по смягчению последствий
Red Hat Enterprise Linux and Red Hat In-Vehicle OS are not affected by this flaw because the vulnerable kho code is not present in their shipped kernels, so no mitigation is required for Red Hat products. For upstream kernels using KHO, the issue can be avoided by using the scratch_scale option, whose sizes are rounded up to CMA_MIN_ALIGNMENT_BYTES automatically, instead of fixed scratch sizes on the kernel command line, or by ensuring that any fixed scratch size passed on the command line is aligned to CMA_MIN_ALIGNMENT_BYTES.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 9 | kernel | Not affected | ||
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected |
Показывать по
Дополнительная информация
Статус:
5.5 Medium
CVSS3
Связанные уязвимости
In the Linux kernel, the following vulnerability has been resolved: kho: make sure scratch size is always aligned by CMA_MIN_ALIGNMENT_BYTES When using scratch_scale, the scratch sizes are rounded up to CMA_MIN_ALIGNMENT_BYTES since they will be released as MIGRATE_CMA. This is not done when using fixed scratch sizes via command line. This can result in user specifying a size which is not aligned, and thus kernel releasing a pageblock that is only partially scratch. Do the rounding up for both cases in scratch_size_update().
In the Linux kernel, the following vulnerability has been resolved: kho: make sure scratch size is always aligned by CMA_MIN_ALIGNMENT_BYTES When using scratch_scale, the scratch sizes are rounded up to CMA_MIN_ALIGNMENT_BYTES since they will be released as MIGRATE_CMA. This is not done when using fixed scratch sizes via command line. This can result in user specifying a size which is not aligned, and thus kernel releasing a pageblock that is only partially scratch. Do the rounding up for both cases in scratch_size_update().
In the Linux kernel, the following vulnerability has been resolved: k ...
In the Linux kernel, the following vulnerability has been resolved: kho: make sure scratch size is always aligned by CMA_MIN_ALIGNMENT_BYTES When using scratch_scale, the scratch sizes are rounded up to CMA_MIN_ALIGNMENT_BYTES since they will be released as MIGRATE_CMA. This is not done when using fixed scratch sizes via command line. This can result in user specifying a size which is not aligned, and thus kernel releasing a pageblock that is only partially scratch. Do the rounding up for both cases in scratch_size_update().
5.5 Medium
CVSS3