{"id":"CVE-2026-97516","state":"PUBLISHED","title":"wifi: rtw88: Add NULL check for chip->edcca_th in rtw_fw_adaptivity_result()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: rtw88: Add NULL check for chip->edcca_th in rtw_fw_adaptivity_result()\n\nIt was recently reported that rtw_fw_adaptivity_result()\nin fw.c dereferences rtwdev->chip->edcca_th without\na NULL check. The issue is that devices with the\n8821CE chip don't define edcca_th in their chip\ninfo. As a result, when rtw_fw_adaptivity_result()\ntries to dereference it, the kernel triggers an oops.\n\nAdd a NULL check for edcca_th before dereferencing\nit in rtw_fw_adaptivity_result() in fw.c. Placing\nthe check at the function entry avoids logging any\ngarbage values.\n\nThis change does not address the root cause for\nthis behavior, but it prevents the NULL dereference\nand the resulting oops while a more permanent solution\nis developed.\n\nTested on a 8822CE chip which defines edcca_th, so\nthis issue is not present on it, but it still uses\nthis driver and I can verify there are no regressions.","publishedAt":"2026-09-24T16:05:14.263Z","updatedAt":"2026-10-03T10:59:10.452Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"a8cdb18ef80d67790d8611ba94ae3d81901c9e04","versionType":"git"},{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"0b58a5ac9170a6f5e6425f8e1a4b3e1d9c2bf53d","versionType":"git"},{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"6fa23cafaf30f4877e357f8eebcff00dff4aa9cb","versionType":"git"},{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"1d1f250432cd8704c3c125168887f9724021c81a","versionType":"git"},{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"d5e6f353ce1e1c25b8458ea390ed09d2377412c5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/fw.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/fw.c"]}],"references":["https://git.kernel.org/stable/c/a8cdb18ef80d67790d8611ba94ae3d81901c9e04","https://git.kernel.org/stable/c/0b58a5ac9170a6f5e6425f8e1a4b3e1d9c2bf53d","https://git.kernel.org/stable/c/6fa23cafaf30f4877e357f8eebcff00dff4aa9cb","https://git.kernel.org/stable/c/1d1f250432cd8704c3c125168887f9724021c81a","https://git.kernel.org/stable/c/d5e6f353ce1e1c25b8458ea390ed09d2377412c5"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/97xxx/CVE-2026-97516.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-97516","state":"PUBLISHED","datePublished":"2026-09-24T16:05:14.263Z","dateUpdated":"2026-10-03T10:59:10.452Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-24T16:01:01.152Z"},"containers":{"cna":{"title":"wifi: rtw88: Add NULL check for chip->edcca_th in rtw_fw_adaptivity_result()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: rtw88: Add NULL check for chip->edcca_th in rtw_fw_adaptivity_result()\n\nIt was recently reported that rtw_fw_adaptivity_result()\nin fw.c dereferences rtwdev->chip->edcca_th without\na NULL check. The issue is that devices with the\n8821CE chip don't define edcca_th in their chip\ninfo. As a result, when rtw_fw_adaptivity_result()\ntries to dereference it, the kernel triggers an oops.\n\nAdd a NULL check for edcca_th before dereferencing\nit in rtw_fw_adaptivity_result() in fw.c. Placing\nthe check at the function entry avoids logging any\ngarbage values.\n\nThis change does not address the root cause for\nthis behavior, but it prevents the NULL dereference\nand the resulting oops while a more permanent solution\nis developed.\n\nTested on a 8822CE chip which defines edcca_th, so\nthis issue is not present on it, but it still uses\nthis driver and I can verify there are no regressions."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"a8cdb18ef80d67790d8611ba94ae3d81901c9e04","versionType":"git"},{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"0b58a5ac9170a6f5e6425f8e1a4b3e1d9c2bf53d","versionType":"git"},{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"6fa23cafaf30f4877e357f8eebcff00dff4aa9cb","versionType":"git"},{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"1d1f250432cd8704c3c125168887f9724021c81a","versionType":"git"},{"version":"fe7bc23a8c5eba8a49061c1d15d0a9d45ef18130","status":"affected","lessThan":"d5e6f353ce1e1c25b8458ea390ed09d2377412c5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/fw.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/fw.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a8cdb18ef80d67790d8611ba94ae3d81901c9e04"},{"url":"https://git.kernel.org/stable/c/0b58a5ac9170a6f5e6425f8e1a4b3e1d9c2bf53d"},{"url":"https://git.kernel.org/stable/c/6fa23cafaf30f4877e357f8eebcff00dff4aa9cb"},{"url":"https://git.kernel.org/stable/c/1d1f250432cd8704c3c125168887f9724021c81a"},{"url":"https://git.kernel.org/stable/c/d5e6f353ce1e1c25b8458ea390ed09d2377412c5"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-03T10:59:10.452Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.6.158"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.12.111"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.18.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}