---
id: CVE-2023-52458
title: |-
  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…
summary: |-
  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…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-476
vendor: linux
product: linux_kernel
affected:
  - linux_kernel < 5.10.215
  - 'linux_kernel >= 5.11.0, < 5.15.148'
  - 'linux_kernel >= 5.16.0, < 6.1.75'
  - 'linux_kernel >= 6.2.0, < 6.6.14'
  - 'linux_kernel >= 6.7.0, < 6.7.2'
patched:
  - linux_kernel 6.7.2
published: '2024-02-23'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:17:14.080'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-52458'
references:
  - url: 'https://git.kernel.org/stable/c/5010c27120962c85d2f421d2cf211791c9603503'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6f64f866aa1ae6975c95d805ed51d7e9433a0016'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ef31cc87794731ffcb578a195a2c47d744e25fb8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5010c27120962c85d2f421d2cf211791c9603503'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/6f64f866aa1ae6975c95d805ed51d7e9433a0016'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/ef31cc87794731ffcb578a195a2c47d744e25fb8'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00231
epssPercentile: 0.13917
ingestedAt: '2026-10-15T03:30:12.640Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-02-26T17:05:34.872000Z'
---

## Overview

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

- `linux_kernel < 5.10.215`
- `linux_kernel >= 5.11.0, < 5.15.148`
- `linux_kernel >= 5.16.0, < 6.1.75`
- `linux_kernel >= 6.2.0, < 6.6.14`
- `linux_kernel >= 6.7.0, < 6.7.2`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.7.2`
