{"id":"CVE-2026-80704","summary":"drm/amd/display: use proper context for logging","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: use proper context for logging\n\nThe same as the rest of the code, get_ss_info_from_atombios() uses\ncalc_pll_cs-\u003ectx-\u003elogger for logging. But calc_pll_cs-\u003ectx is\ninitialized only later in calc_pll_max_vco_construct(). Therefore, any\noutput using DC_LOG_SYNC() leads to a NULL pointer deference in\nget_ss_info_from_atombios().\n\nAccording to Sashiko, the very same problem exists in\ndce112_get_pix_clk_dividers() and dcn3_get_pix_clk_dividers() too.\n\nTo avoid accessing the NULL context, use clk_src-\u003ebase.ctx-\u003elogger\neverywhere. That context in base is initialized earlier in\ndce110_clk_src_construct() and dce112_clk_src_construct(). Before\nget_ss_info_from_atombios() or Sashiko's get_pix_clk_dividers functions\nabove are actually called. This is done by redefining DC_LOGGER to\nCTX-\u003elogger.\n\nBefore:\ndce110_clk_src_construct() did:\n -\u003e sets clk_src-\u003ebase.ctx = ctx;\n -\u003e ss_info_from_atombios_create()\n   -\u003e get_ss_info_from_atombios()   \u003c- uses calc_pll_cs-\u003ectx  # BOOM\n -\u003e calc_pll_max_vco_construct()    \u003c- sets calc_pll_cs-\u003ectx\n\nAfter:\ndce110_clk_src_construct() does:\n -\u003e sets clk_src-\u003ebase.ctx = ctx;\n -\u003e ss_info_from_atombios_create()\n   -\u003e get_ss_info_from_atombios()   \u003c- uses clk_src-\u003ebase.ctx\n\n(cherry picked from commit 6f16fcbb0c46a87e3d9685407e906573d60104b0)","modified":"2026-08-30T03:47:09.612348399Z","published":"2026-08-28T06:53:06.442Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80704.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/02647d98340738f918690ed227fdcf154db1b84a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/114b42507b6a23d9d24e24e4ef165233332c64d4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a94e62b7c7018fcfe0251e53fa96af30f12d923a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f556bc844cc4423e5ad41ae41a4c24f1cf75b978"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80704.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80704"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1296423bf23c7a58133970e223b1f47ec6570308"},{"fixed":"a94e62b7c7018fcfe0251e53fa96af30f12d923a"},{"fixed":"02647d98340738f918690ed227fdcf154db1b84a"},{"fixed":"f556bc844cc4423e5ad41ae41a4c24f1cf75b978"},{"fixed":"114b42507b6a23d9d24e24e4ef165233332c64d4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80704.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.17.0"},{"fixed":"6.12.103"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.44"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80704.json"}}],"schema_version":"1.9.0"}