{"id":"CVE-2026-139062","state":"PUBLISHED","title":"soc: qcom: geni-se: Fix write to read-only firmware buffer","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: geni-se: Fix write to read-only firmware buffer\n\ngeni_find_protocol_fw() casts fw->data to a non-const struct se_fw_hdr\npointer and writes back the rounded-up fw_size value:\n\n        sefw->fw_size_in_items = cpu_to_le16(fw_size);\n\nThe firmware subsystem maps the firmware blob read-only. Writing through\nthe cast pointer causes a level-3 permission fault on AArch64 and\ncrashes the kernel during driver probe.\n\nThe write-back is no longer necessary: geni_find_protocol_fw() now\npropagates the rounded size to the caller via fw_size_out. Remove the\nwrite-back and make sefw (and the hdr pointer in the caller)\nconst-correct.","publishedAt":"2026-11-30T13:27:30.872Z","updatedAt":"2026-11-30T13:27:30.872Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d4bf06592ad68ac4353a81c73e8e662cf88aa2cc","status":"affected","lessThan":"ed48f8b0ec58dd970acb5ab8cedb29f11dd8a576","versionType":"git"},{"version":"d4bf06592ad68ac4353a81c73e8e662cf88aa2cc","status":"affected","lessThan":"f2bc9dc41b5a4ce5fd535e50d8bc31cfd3130be7","versionType":"git"},{"version":"d4bf06592ad68ac4353a81c73e8e662cf88aa2cc","status":"affected","lessThan":"28b9c15f1829fff7b26db0dbbbde1c6b466cb156","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/soc/qcom/qcom-geni-se.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/soc/qcom/qcom-geni-se.c"]}],"references":["https://git.kernel.org/stable/c/ed48f8b0ec58dd970acb5ab8cedb29f11dd8a576","https://git.kernel.org/stable/c/f2bc9dc41b5a4ce5fd535e50d8bc31cfd3130be7","https://git.kernel.org/stable/c/28b9c15f1829fff7b26db0dbbbde1c6b466cb156"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139062.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139062","state":"PUBLISHED","datePublished":"2026-11-30T13:27:30.872Z","dateUpdated":"2026-11-30T13:27:30.872Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.911Z"},"containers":{"cna":{"title":"soc: qcom: geni-se: Fix write to read-only firmware buffer","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: geni-se: Fix write to read-only firmware buffer\n\ngeni_find_protocol_fw() casts fw->data to a non-const struct se_fw_hdr\npointer and writes back the rounded-up fw_size value:\n\n        sefw->fw_size_in_items = cpu_to_le16(fw_size);\n\nThe firmware subsystem maps the firmware blob read-only. Writing through\nthe cast pointer causes a level-3 permission fault on AArch64 and\ncrashes the kernel during driver probe.\n\nThe write-back is no longer necessary: geni_find_protocol_fw() now\npropagates the rounded size to the caller via fw_size_out. Remove the\nwrite-back and make sefw (and the hdr pointer in the caller)\nconst-correct."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d4bf06592ad68ac4353a81c73e8e662cf88aa2cc","status":"affected","lessThan":"ed48f8b0ec58dd970acb5ab8cedb29f11dd8a576","versionType":"git"},{"version":"d4bf06592ad68ac4353a81c73e8e662cf88aa2cc","status":"affected","lessThan":"f2bc9dc41b5a4ce5fd535e50d8bc31cfd3130be7","versionType":"git"},{"version":"d4bf06592ad68ac4353a81c73e8e662cf88aa2cc","status":"affected","lessThan":"28b9c15f1829fff7b26db0dbbbde1c6b466cb156","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/soc/qcom/qcom-geni-se.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/soc/qcom/qcom-geni-se.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ed48f8b0ec58dd970acb5ab8cedb29f11dd8a576"},{"url":"https://git.kernel.org/stable/c/f2bc9dc41b5a4ce5fd535e50d8bc31cfd3130be7"},{"url":"https://git.kernel.org/stable/c/28b9c15f1829fff7b26db0dbbbde1c6b466cb156"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:30.872Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}