CVE-2026-139062: soc: qcom: geni-se: Fix write to read-only firmware buffer
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: geni-se: Fix write to read-only firmware buffer
genifindprotocolfw() casts fw->data to a non-const struct sefwhdr pointer and writes back the rounded-up fwsize value:
sefw->fwsizeinitems = cputole16(fwsize);
The firmware subsystem maps the firmware blob read-only. Writing through the cast pointer causes a level-3 permission fault on AArch64 and crashes the kernel during driver probe.
The write-back is no longer necessary: genifindprotocolfw() now propagates the rounded size to the caller via fwsizeout. Remove the write-back and make sefw (and the hdr pointer in the caller) const-correct.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In geni_find_protocol_fw(), remove the write-back to the read-only firmware buffer and make sefw and the caller’s header pointer const-correct; use fw_size_out to propagate the rounded firmware size.