Lucene search

K
ubuntucveUbuntu.comUB:CVE-2024-35994
HistoryMay 20, 2024 - 12:00 a.m.

CVE-2024-35994

2024-05-2000:00:00
ubuntu.com
ubuntu.com
3
linux kernel
firmware qcom
memory region
scm call
dma allocation

6.8 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.1%

In the Linux kernel, the following vulnerability has been resolved:
firmware: qcom: uefisecapp: Fix memory related IO errors and crashes It
turns out that while the QSEECOM APP_SEND command has specific fields for
request and response buffers, uefisecapp expects them both to be in a
single memory region. Failure to adhere to this has (so far) resulted in
either no response being written to the response buffer (causing an EIO to
be emitted down the line), the SCM call to fail with EINVAL (i.e., directly
from TZ/firmware), or the device to be hard-reset. While this issue can be
triggered deterministically, in the current form it seems to happen rather
sporadically (which is why it has gone unnoticed during earlier testing).
This is likely due to the two kzalloc() calls (for request and response)
being directly after each other. Which means that those likely return
consecutive regions most of the time, especially when not much else is
going on in the system. Fix this by allocating a single memory region for
both request and response buffers, properly aligning both structs inside
it. This unfortunately also means that the qcom_scm_qseecom_app_send()
interface needs to be restructured, as it should no longer map the DMA
regions separately. Therefore, move the responsibility of DMA allocation
(or mapping) to the caller.

6.8 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.1%

Related for UB:CVE-2024-35994