lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ed43a751-3b02-46db-9fe1-da6c9f79fd80@omp.ru>
Date: Tue, 16 Sep 2025 22:04:52 +0300
From: Sergey Shtylyov <s.shtylyov@....ru>
To: <stable@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: Henry Martin <bsdhenrymartin@...il.com>, Sudeep Holla
	<sudeep.holla@....com>, Viresh Kumar <viresh.kumar@...aro.org>,
	<lvc-project@...uxtesting.org>
Subject: Re: [PATCH 5.10.y] cpufreq: scmi: Fix null-ptr-deref in
 scmi_cpufreq_get_rate()

On 9/12/25 11:35 PM, Sergey Shtylyov wrote:

> From: Henry Martin <bsdhenrymartin@...il.com>
> 
> [ Upstream commit 484d3f15cc6cbaa52541d6259778e715b2c83c54 ]
> 
> cpufreq_cpu_get_raw() can return NULL when the target CPU is not present
> in the policy->cpus mask. scmi_cpufreq_get_rate() does not check for
> this case, which results in a NULL pointer dereference.
> 
> Add NULL check after cpufreq_cpu_get_raw() to prevent this issue.
> 
> [Sergey: resolved reject (reordering the local variables).]
> 
> Fixes: 99d6bdf33877 ("cpufreq: add support for CPU DVFS based on SCMI message protocol")
> Signed-off-by: Henry Martin <bsdhenrymartin@...il.com>
> Acked-by: Sudeep Holla <sudeep.holla@....com>
> Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
> Signed-off-by: Sergey Shtylyov <s.shtylyov@....ru>

   Probably should have noted that this patch fixes CVE-2025-37830:

https://marc.info/?l=linux-cve-announce&m=174668615621702

   (Sorry, lore doesn't work for me anymre...]

MBR, Sergey


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ