Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92D8E14B092 for ; Wed, 2 Jul 2025 14:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751467425; cv=none; b=ZJGiXWmg6QqI0KzN9AWayxbBdRvv6/FoK3qSOzT//0n97EYwAIo9LXOfDPi7WEiKf38nfW/EwEY0Qf1OI+aRqKMOfOYFrBhmzJwSYyYNVJlssUQAJkquC4wSzgBg87ZpPvQsR/rQe18/xTy2kogPEB4JBTx2/TNHmLf1dmgnLT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751467425; c=relaxed/simple; bh=G41oZgUU4mVn5kIGxqphPvvJQGSWQ7exR/AsQuo/MRo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RUzwN8LcXhYJfdN79S/Cmy6DmNGIc7M3y2OzJLt9d56zllQeKf/zLLX/yWj4KNa9BWRCv7Aj7Kjp5bHziaprwaNbdrnid7oH4w2T/8BgH1nhISFuzFyE+iV7kLbvhjQ9179YK5P67YYfwc+2b2MPnNr16SiuoZzUo+h9zDFy/BQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sKWStcX+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sKWStcX+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E663C4CEE7; Wed, 2 Jul 2025 14:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751467425; bh=G41oZgUU4mVn5kIGxqphPvvJQGSWQ7exR/AsQuo/MRo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sKWStcX+gWAQVlRGrPpfbryJHFh6HY4ema8nlwp4HCP2uGpprIpuFdhQIriomFJPa ZuSQexjVnzuc5+Tuyyq99CnzWQSfzND7yYpCS4ctGz2K5FSCa9PzZUU4dLF9npH9P/ RYyscYQFBoW/ltAmYrGSNS1m5OuN8kl5ZTFqF8xM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38091: drm/amd/display: check stream id dml21 wrapper to get plane_id Date: Wed, 2 Jul 2025 16:43:34 +0200 Message-ID: <2025070235-CVE-2025-38091-cb97@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=5580; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IzMed+9YC8kzVesfJjv68kJUok8t2g53Q5m7ivSZXUE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmprtPLFSP8b5f5zZi2a2WWnfTN6JX+HBtddO+tFPnMk Mb8a6tlRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExER41hftbTowsfiPw3Xv3z qZaZIJf376R9QNGigh+R89Ya7v6eGFnnu0Do8PpeDgUA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: quoted-printable From: Greg Kroah-Hartman Description =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: check stream id dml21 wrapper to get plane_id [Why & How] Fix a false positive warning which occurs due to lack of correct checks when querying plane_id in DML21. This fixes the warning when performing a mode1 reset (cat /sys/kernel/debug/dri/1/amdgpu_gpu_recover): [ 35.751250] WARNING: CPU: 11 PID: 326 at /tmp/amd.PHpyAl7v/amd/amdgpu/..= /display/dc/dml2/dml2_dc_resource_mgmt.c:91 dml2_map_dc_pipes+0x243d/0x3f40= [amdgpu] [ 35.751434] Modules linked in: amdgpu(OE) amddrm_ttm_helper(OE) amdttm(O= E) amddrm_buddy(OE) amdxcp(OE) amddrm_exec(OE) amd_sched(OE) amdkcl(OE) drm= _suballoc_helper drm_ttm_helper ttm drm_display_helper cec rc_core i2c_algo= _bit rfcomm qrtr cmac algif_hash algif_skcipher af_alg bnep amd_atl intel_r= apl_msr intel_rapl_common snd_hda_codec_hdmi snd_hda_intel edac_mce_amd snd= _intel_dspcfg snd_intel_sdw_acpi snd_hda_codec kvm_amd snd_hda_core snd_hwd= ep snd_pcm kvm snd_seq_midi snd_seq_midi_event snd_rawmidi crct10dif_pclmul= polyval_clmulni polyval_generic btusb ghash_clmulni_intel sha256_ssse3 btr= tl sha1_ssse3 snd_seq btintel aesni_intel btbcm btmtk snd_seq_device crypto= _simd sunrpc cryptd bluetooth snd_timer ccp binfmt_misc rapl snd i2c_piix4 = wmi_bmof gigabyte_wmi k10temp i2c_smbus soundcore gpio_amdpt mac_hid sch_fq= _codel msr parport_pc ppdev lp parport efi_pstore nfnetlink dmi_sysfs ip_ta= bles x_tables autofs4 hid_generic usbhid hid crc32_pclmul igc ahci xhci_pci= libahci xhci_pci_renesas video wmi [ 35.751501] CPU: 11 UID: 0 PID: 326 Comm: kworker/u64:9 Tainted: G = OE 6.11.0-21-generic #21~24.04.1-Ubuntu [ 35.751504] Tainted: [O]=3DOOT_MODULE, [E]=3DUNSIGNED_MODULE [ 35.751505] Hardware name: Gigabyte Technology Co., Ltd. X670E AORUS PRO= X/X670E AORUS PRO X, BIOS F30 05/22/2024 [ 35.751506] Workqueue: amdgpu-reset-dev amdgpu_debugfs_reset_work [amdgp= u] [ 35.751638] RIP: 0010:dml2_map_dc_pipes+0x243d/0x3f40 [amdgpu] [ 35.751794] Code: 6d 0c 00 00 8b 84 24 88 00 00 00 41 3b 44 9c 20 0f 84 = fc 07 00 00 48 83 c3 01 48 83 fb 06 75 b3 4c 8b 64 24 68 4c 8b 6c 24 40 <0f= > 0b b8 06 00 00 00 49 8b 94 24 a0 49 00 00 89 c3 83 f8 07 0f 87 [ 35.751796] RSP: 0018:ffffbfa3805d7680 EFLAGS: 00010246 [ 35.751798] RAX: 0000000000010000 RBX: 0000000000000006 RCX: 00000000000= 00000 [ 35.751799] RDX: 0000000000000000 RSI: 0000000000000005 RDI: 00000000000= 00000 [ 35.751800] RBP: ffffbfa3805d78f0 R08: 0000000000000000 R09: 00000000000= 00000 [ 35.751801] R10: 0000000000000000 R11: 0000000000000000 R12: ffffbfa3832= 49000 [ 35.751802] R13: ffffa0e68f280000 R14: ffffbfa383249658 R15: 00000000000= 00000 [ 35.751803] FS: 0000000000000000(0000) GS:ffffa0edbe580000(0000) knlGS:= 0000000000000000 [ 35.751804] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 35.751805] CR2: 00005d847ef96c58 CR3: 000000041de3e000 CR4: 0000000000f= 50ef0 [ 35.751806] PKRU: 55555554 [ 35.751807] Call Trace: [ 35.751810] [ 35.751816] ? show_regs+0x6c/0x80 [ 35.751820] ? __warn+0x88/0x140 [ 35.751822] ? dml2_map_dc_pipes+0x243d/0x3f40 [amdgpu] [ 35.751964] ? report_bug+0x182/0x1b0 [ 35.751969] ? handle_bug+0x6e/0xb0 [ 35.751972] ? exc_invalid_op+0x18/0x80 [ 35.751974] ? asm_exc_invalid_op+0x1b/0x20 [ 35.751978] ? dml2_map_dc_pipes+0x243d/0x3f40 [amdgpu] [ 35.752117] ? math_pow+0x48/0xa0 [amdgpu] [ 35.752256] ? srso_alias_return_thunk+0x5/0xfbef5 [ 35.752260] ? math_pow+0x48/0xa0 [amdgpu] [ 35.752400] ? srso_alias_return_thunk+0x5/0xfbef5 [ 35.752403] ? math_pow+0x11/0xa0 [amdgpu] [ 35.752524] ? srso_alias_return_thunk+0x5/0xfbef5 [ 35.752526] ? core_dcn4_mode_programming+0xe4d/0x20d0 [amdgpu] [ 35.752663] ? srso_alias_return_thunk+0x5/0xfbef5 [ 35.752669] dml21_validate+0x3d4/0x980 [amdgpu] (cherry picked from commit f8ad62c0a93e5dd94243e10f1b742232e4d6411e) The Linux kernel CVE team has assigned CVE-2025-38091 to this issue. Affected and fixed versions =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Fixed in 6.12.32 with commit 6f47d7408133631a1b178f8a04e79aee189ef046 Fixed in 6.14.10 with commit c53f23f7075c9f63f14d7ec8f2cc3e33e118d986 Fixed in 6.15 with commit 2ddac70fed50485aa4ae49cdb7478ce41d8d4715 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=3DCVE-2025-38091 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The file(s) affected by this issue are: drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c Mitigation =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/6f47d7408133631a1b178f8a04e79aee189ef046 https://git.kernel.org/stable/c/c53f23f7075c9f63f14d7ec8f2cc3e33e118d986 https://git.kernel.org/stable/c/2ddac70fed50485aa4ae49cdb7478ce41d8d4715