mbox series

[SRU,F/J/M,0/1] CVE-2024-23307

Message ID 20240503172232.1232019-1-magali.lemes@canonical.com
Headers show
Series CVE-2024-23307 | expand

Message

Magali Lemes May 3, 2024, 5:22 p.m. UTC
[Impact]
An integer overflow flaw was found in the raid5 subsystem in the Linux kernel.
Concurrent executions of raid5_cache_count() and raid5_set_cache_size() may
lead to inconsistent reads of conf->max_nr_stripes and conf->min_nr_stripes,
such that conf->min_nr_stripes may exceed conf->max_nr_stripes and potentially
cause an integer overflow.

[Backport]
Clean cherry-pick from linux-6.6.y.

[Test]
Compile and boot tested.

[Where problems could occur]
Any problems would be limited to systems that use RAID 4/5/6 configurations.
As the fix touches code related to stripe cache, although unlikely, this could
impact performance.

Gui-Dong Han (1):
  md/raid5: fix atomicity violation in raid5_cache_count

 drivers/md/raid5.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Comments

Tim Gardner May 6, 2024, 2:53 p.m. UTC | #1
On 5/3/24 11:22 AM, Magali Lemes wrote:
> [Impact]
> An integer overflow flaw was found in the raid5 subsystem in the Linux kernel.
> Concurrent executions of raid5_cache_count() and raid5_set_cache_size() may
> lead to inconsistent reads of conf->max_nr_stripes and conf->min_nr_stripes,
> such that conf->min_nr_stripes may exceed conf->max_nr_stripes and potentially
> cause an integer overflow.
> 
> [Backport]
> Clean cherry-pick from linux-6.6.y.
> 
> [Test]
> Compile and boot tested.
> 
> [Where problems could occur]
> Any problems would be limited to systems that use RAID 4/5/6 configurations.
> As the fix touches code related to stripe cache, although unlikely, this could
> impact performance.
> 
> Gui-Dong Han (1):
>    md/raid5: fix atomicity violation in raid5_cache_count
> 
>   drivers/md/raid5.c | 14 ++++++++------
>   1 file changed, 8 insertions(+), 6 deletions(-)
> 
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Cengiz Can May 6, 2024, 10:04 p.m. UTC | #2
On 24-05-03 14:22:31, Magali Lemes wrote:
> [Impact]
> An integer overflow flaw was found in the raid5 subsystem in the Linux kernel.
> Concurrent executions of raid5_cache_count() and raid5_set_cache_size() may
> lead to inconsistent reads of conf->max_nr_stripes and conf->min_nr_stripes,
> such that conf->min_nr_stripes may exceed conf->max_nr_stripes and potentially
> cause an integer overflow.
> 
> [Backport]
> Clean cherry-pick from linux-6.6.y.
> 
> [Test]
> Compile and boot tested.
> 
> [Where problems could occur]
> Any problems would be limited to systems that use RAID 4/5/6 configurations.
> As the fix touches code related to stripe cache, although unlikely, this could
> impact performance.
> 
> Gui-Dong Han (1):
>   md/raid5: fix atomicity violation in raid5_cache_count

Acked-by: Cengiz Can <cengiz.can@canonical.com>


> 
>  drivers/md/raid5.c | 14 ++++++++------
>  1 file changed, 8 insertions(+), 6 deletions(-)
> 
> -- 
> 2.34.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Roxana Nicolescu May 27, 2024, 7:47 a.m. UTC | #3
On 03/05/2024 19:22, Magali Lemes wrote:
> [Impact]
> An integer overflow flaw was found in the raid5 subsystem in the Linux kernel.
> Concurrent executions of raid5_cache_count() and raid5_set_cache_size() may
> lead to inconsistent reads of conf->max_nr_stripes and conf->min_nr_stripes,
> such that conf->min_nr_stripes may exceed conf->max_nr_stripes and potentially
> cause an integer overflow.
>
> [Backport]
> Clean cherry-pick from linux-6.6.y.
>
> [Test]
> Compile and boot tested.
>
> [Where problems could occur]
> Any problems would be limited to systems that use RAID 4/5/6 configurations.
> As the fix touches code related to stripe cache, although unlikely, this could
> impact performance.
>
> Gui-Dong Han (1):
>    md/raid5: fix atomicity violation in raid5_cache_count
>
>   drivers/md/raid5.c | 14 ++++++++------
>   1 file changed, 8 insertions(+), 6 deletions(-)
>
Applied to mantic:linux, jammy:linux, focal:linux master-next branches. 
Thanks!