mbox series

[SRU,OEM-6.1,F/J/L/M,0/1] CVE-2023-31085

Message ID 20231026153508.6845-1-yuxuan.luo@canonical.com
Headers show
Series CVE-2023-31085 | expand

Message

Yuxuan Luo Oct. 26, 2023, 3:35 p.m. UTC
[Impact]
An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2.
There is a divide-by-zero error in do_div(sz,mtd->erasesize), used
indirectly by ctrl_cdev_ioctl, when mtd->erasesize is 0.

[Backport]
It is a clean cherry pick.

[Test]
Compile and boot tested.

[Potential Regression]
Expect very low regression potential that's limited to this specific
driver.


Zhihao Cheng (1):
  ubi: Refuse attaching if mtd's erasesize is 0

 drivers/mtd/ubi/build.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Stefan Bader Oct. 27, 2023, 9 a.m. UTC | #1
On 26.10.23 17:35, Yuxuan Luo wrote:
> [Impact]
> An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2.
> There is a divide-by-zero error in do_div(sz,mtd->erasesize), used
> indirectly by ctrl_cdev_ioctl, when mtd->erasesize is 0.
> 
> [Backport]
> It is a clean cherry pick.
> 
> [Test]
> Compile and boot tested.
> 
> [Potential Regression]
> Expect very low regression potential that's limited to this specific
> driver.
> 
> 
> Zhihao Cheng (1):
>    ubi: Refuse attaching if mtd's erasesize is 0
> 
>   drivers/mtd/ubi/build.c | 7 +++++++
>   1 file changed, 7 insertions(+)
> 

Acked-by: Stefan Bader <stefan.bader@canonical.com>
Roxana Nicolescu Oct. 27, 2023, 9:30 a.m. UTC | #2
On 26/10/2023 17:35, Yuxuan Luo wrote:
> [Impact]
> An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2.
> There is a divide-by-zero error in do_div(sz,mtd->erasesize), used
> indirectly by ctrl_cdev_ioctl, when mtd->erasesize is 0.
>
> [Backport]
> It is a clean cherry pick.
>
> [Test]
> Compile and boot tested.
>
> [Potential Regression]
> Expect very low regression potential that's limited to this specific
> driver.
>
>
> Zhihao Cheng (1):
>    ubi: Refuse attaching if mtd's erasesize is 0
>
>   drivers/mtd/ubi/build.c | 7 +++++++
>   1 file changed, 7 insertions(+)
>
Acked-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
Roxana Nicolescu Oct. 27, 2023, 11:41 a.m. UTC | #3
On 26/10/2023 17:35, Yuxuan Luo wrote:
> [Impact]
> An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2.
> There is a divide-by-zero error in do_div(sz,mtd->erasesize), used
> indirectly by ctrl_cdev_ioctl, when mtd->erasesize is 0.
>
> [Backport]
> It is a clean cherry pick.
>
> [Test]
> Compile and boot tested.
>
> [Potential Regression]
> Expect very low regression potential that's limited to this specific
> driver.
>
>
> Zhihao Cheng (1):
>    ubi: Refuse attaching if mtd's erasesize is 0
>
>   drivers/mtd/ubi/build.c | 7 +++++++
>   1 file changed, 7 insertions(+)
>
Applied to f,j,l,m:master-next. Thanks!

Roxana
Timo Aaltonen Oct. 31, 2023, 7:27 a.m. UTC | #4
Yuxuan Luo kirjoitti 26.10.2023 klo 18.35:
> [Impact]
> An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2.
> There is a divide-by-zero error in do_div(sz,mtd->erasesize), used
> indirectly by ctrl_cdev_ioctl, when mtd->erasesize is 0.
> 
> [Backport]
> It is a clean cherry pick.
> 
> [Test]
> Compile and boot tested.
> 
> [Potential Regression]
> Expect very low regression potential that's limited to this specific
> driver.
> 
> 
> Zhihao Cheng (1):
>    ubi: Refuse attaching if mtd's erasesize is 0
> 
>   drivers/mtd/ubi/build.c | 7 +++++++
>   1 file changed, 7 insertions(+)
> 

applied to oem-6.1, thanks