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 7D73784D34 for ; Thu, 27 Feb 2025 02:13:11 +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=1740622391; cv=none; b=utE5Hf3tftQcu8bE9wC9p3pPpzj0bsdYUP/DGlclBbIF2IpaQmHt217ncpQLQl4aupcLxwC6LMoO032KcK0RzSx+vb0SZiSyDDQDAL10byz2GWkMxMObfMGLjs60aDSlNKnOVRowlpSdO8l+KfVLOMP7JtJUOELEIXRPCeWQBSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622391; c=relaxed/simple; bh=7sKIHwHGgVNNlyYuvjOfaq4Fek+0VrsXZlrhq4NzH9Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=W7+pmYy8kN7cCMsc5F2kKUUa+4g7QM5pxvRzog0jxbH8DqgztpFK0gyzgizrRJItjSjjRoC1agi8gXSatCpb87kHkZDizzNjdXZmCxsL5Feajgaspfhqa6uYlLkqp1MSsj7O0VbuAOPYLz3CILuDayTCAy99ah/ZOkYHXTJH0PQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=osZ6ZO2Y; 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="osZ6ZO2Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0621AC4CEE2; Thu, 27 Feb 2025 02:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622391; bh=7sKIHwHGgVNNlyYuvjOfaq4Fek+0VrsXZlrhq4NzH9Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=osZ6ZO2YdX5BJHk8CM8g9Iqa1jHqsUYlAPg8iwrRRE+oHuirYRmM7M7ccKcd7Nn2d IhV/wULES0mWpQQhHouOWIH/HMb//1zqNmjRuupjsSUMWAgJ+X87qW9B8yWcqWGg37 nXSMXfJLLPsEeOkWm0VU6lMXlU+Hdoj4mNK0Qqh0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58004: media: intel/ipu6: remove cpu latency qos request on error Date: Wed, 26 Feb 2025 18:10:58 -0800 Message-ID: <2025022655-CVE-2024-58004-cf99@gregkh> X-Mailer: git-send-email 2.48.1 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=3258; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7sKIHwHGgVNNlyYuvjOfaq4Fek+0VrsXZlrhq4NzH9Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T643fMNnuH7V1y6veNb1OzUeaAqZ/M7enz9vmqf1w +vbZ/o0d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBERB8zzJWcKrrg89JbrZse hr54zvqGdYlnYjPDPM2TnMt0pnZKVd/tmlYz5aiw0+6e3QA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: media: intel/ipu6: remove cpu latency qos request on error Fix cpu latency qos list corruption like below. It happens when we do not remove cpu latency request on error path and free corresponding memory. [ 30.634378] l7 kernel: list_add corruption. prev->next should be next (ffffffff9645e960), but was 0000000100100001. (prev=ffff8e9e877e20a8). [ 30.634388] l7 kernel: WARNING: CPU: 2 PID: 2008 at lib/list_debug.c:32 __list_add_valid_or_report+0x83/0xa0 [ 30.634640] l7 kernel: Call Trace: [ 30.634650] l7 kernel: [ 30.634659] l7 kernel: ? __list_add_valid_or_report+0x83/0xa0 [ 30.634669] l7 kernel: ? __warn.cold+0x93/0xf6 [ 30.634678] l7 kernel: ? __list_add_valid_or_report+0x83/0xa0 [ 30.634690] l7 kernel: ? report_bug+0xff/0x140 [ 30.634702] l7 kernel: ? handle_bug+0x58/0x90 [ 30.634712] l7 kernel: ? exc_invalid_op+0x17/0x70 [ 30.634723] l7 kernel: ? asm_exc_invalid_op+0x1a/0x20 [ 30.634733] l7 kernel: ? __list_add_valid_or_report+0x83/0xa0 [ 30.634742] l7 kernel: plist_add+0xdd/0x140 [ 30.634754] l7 kernel: pm_qos_update_target+0xa0/0x1f0 [ 30.634764] l7 kernel: cpu_latency_qos_update_request+0x61/0xc0 [ 30.634773] l7 kernel: intel_dp_aux_xfer+0x4c7/0x6e0 [i915 1f824655ed04687c2b0d23dbce759fa785f6d033] The Linux kernel CVE team has assigned CVE-2024-58004 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit f50c4ca0a82003b8a542c3332fd292cf1bc355a2 and fixed in 6.12.14 with commit 1496ec94bd38bdb25ca13b1dd4f8e7a6176ea89d Issue introduced in 6.10 with commit f50c4ca0a82003b8a542c3332fd292cf1bc355a2 and fixed in 6.13.3 with commit 95275736185ecb71dc97a71d8d9d19e4ffb0a9eb Issue introduced in 6.10 with commit f50c4ca0a82003b8a542c3332fd292cf1bc355a2 and fixed in 6.14-rc1 with commit facb541ff0805314e0b56e508f7d3cbd07af513c 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=CVE-2024-58004 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/media/pci/intel/ipu6/ipu6-isys.c Mitigation ========== 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/1496ec94bd38bdb25ca13b1dd4f8e7a6176ea89d https://git.kernel.org/stable/c/95275736185ecb71dc97a71d8d9d19e4ffb0a9eb https://git.kernel.org/stable/c/facb541ff0805314e0b56e508f7d3cbd07af513c