5.5medium
block: add check that partition length needs to be aligned with block size
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.23% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: block: add check that partition length needs to be aligned with block size Before calling add partition or resize partition, there is no check on whether the length is aligned with the logical block size. If the logical block size of the disk is larger than 512 bytes, then the partition size maybe not the multiple of the logical block size, and when the last sector is read, bio_truncate() will adjust the bio size, resulting in an IO error if the size of the read command is smaller than the logical block size.If integrity data is supported, this will also result in a null pointer dereference when calling bio_integrity_free.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 633395b67bb222f85bb8f825c7751a54b9ec84ee before 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62, from 633395b67bb222f85bb8f825c7751a54b9ec84ee before 5010c27120962c85d2f421d2cf211791c9603503, from 633395b67bb222f85bb8f825c7751a54b9ec84ee before ef31cc87794731ffcb578a195a2c47d744e25fb8, from 633395b67bb222f85bb8f825c7751a54b9ec84ee before cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8, from 633395b67bb222f85bb8f825c7751a54b9ec84ee before bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5, from 633395b67bb222f85bb8f825c7751a54b9ec84ee before 6f64f866aa1ae6975c95d805ed51d7e9433a0016, 4.10 Not affected: before 4.10, from 5.10.215 up to 5.10.*, from 5.15.148 up to 5.15.*, from 6.1.75 up to 6.1.*, from 6.6.14 up to 6.6.*, from 6.7.2 up to 6.7.* | CVE List |
| linux linux_kernel | before 5.10.215, from 5.11.0 before 5.15.148, from 5.16.0 before 6.1.75, from 6.2.0 before 6.6.14, from 6.7.0 before 6.7.2 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: block: add check that partition length needs to be aligned with block size Before calling add partition or resize partition, there is no check on whether the length is aligned with the logical block size. If the logical block size of the disk is larger than 512 bytes, then the partition size maybe not the multiple of the logical block size, and when the last sector is read, bio_truncate() will adjust the bio size, resulting in an IO error if the size of the read command is smaller than the logical block size.If integrity data is supported, this will also result in a null pointer dereference when calling bio_integrity_free.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bloque: agregar verifique que la longitud de la partición debe estar alineada con el tamaño del bloque Antes de llamar a agregar partición o cambiar el tamaño de la partición, no se verifica si la longitud está alineada con el tamaño del bloque lógico. Si el tamaño del bloque lógico del disco es mayor que 512 bytes, entonces el tamaño de la partición tal vez no sea el múltiplo del tamaño del bloque lógico, y cuando se lea el último sector, bio_truncate() ajustará el tamaño de la biografía, lo que resultará en un error de E/S si el tamaño del comando de lectura es menor que el tamaño del bloque lógico. Si se admiten datos de integridad, esto también resultará en una desreferencia del puntero nulo al llamar a bio_integrity_free.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52458 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2023-52458 changed 2026-10-15 | Public domain |