CVE catalog

CVE-2023-54002

linux: CVE-2023-54002

[CVE catalog]

Severity
Medium · CVSS 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.20% · Oct 25, 2026

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix assertion of exclop condition when starting balance Balance as exclusive state is compatible with paused balance and device add, which makes some things more complicated. The assertion of valid states when starting from paused balance needs to take into account two more states, the combinations can be hit when there are several threads racing to start balance and device add. This won't typically happen when the commands are started from command line. Scenario 1: With exclusive_operation state == BTRFS_EXCLOP_NONE. Concurrently adding multiple devices to the same mount point and btrfs_exclop_finish executed finishes before assertion in btrfs_exclop_balance, exclusive_operation will changed to BTRFS_EXCLOP_NONE state which lead to assertion failed: fs_info->exclusive_operation == BTRFS_EXCLOP_BALANCE || fs_info->exclusive_operation == BTRFS_EXCLOP_DEV_ADD, in fs/btrfs/ioctl.c:456 Call Trace: <TASK> btrfs_exclop_balance+0x13c/0x310 ? memdup_user+0xab/0xc0 ? PTR_ERR+0x17/0x20 btrfs_ioctl_add_dev+0x2ee/0x320 btrfs_ioctl+0x9d5/0x10d0 ? btrfs_ioctl_encoded_write+0xb80/0xb80 __x64_sys_ioctl+0x197/0x210 do_syscall_64+0x3c/0xb0 entry_SYSCALL_64_after_hwframe+0x63/0xcd Scenario 2: With exclusive_operation state == BTRFS_EXCLOP_BALANCE_PAUSED. Concurrently adding multiple devices to the same mount point and btrfs_exclop_balance executed finish before the latter thread execute assertion in btrfs_exclop_balance, exclusive_operation will changed to BTRFS_EXCLOP_BALANCE_PAUSED state which lead to assertion failed: fs_info->exclusive_operation == BTRFS_EXCLOP_BALANCE || fs_info->exclusive_operation == BTRFS_EXCLOP_DEV_ADD || fs_info->exclusive_operation == BTRFS_EXCLOP_NONE, fs/btrfs/ioctl.c:458 Call Trace: <TASK> btrfs_exclop_balance+0x240/0x410 ? memdup_user+0xab/0xc0 ? PTR_ERR+0x17/0x20 btrfs_ioctl_add_dev+0x2ee/0x320 btrfs_ioctl+0x9d5/0x10d0 ? btrfs_ioctl_encoded_write+0xb80/0xb80 __x64_sys_ioctl+0x197/0x210 do_syscall_64+0x3c/0xb0 entry_SYSCALL_64_after_hwframe+0x63/0xcd An example of the failed assertion is below, which shows that the paused balance is also needed to be checked. root@syzkaller:/home/xsk# ./repro Failed to add device /dev/vda, errno 14 Failed to add device /dev/vda, errno 14 Failed to add device /dev/vda, errno 14 Failed to add device /dev/vda, errno 14 Failed to add device /dev/vda, errno 14 Failed to add device /dev/vda, errno 14 Failed to add device /dev/vda, errno 14 Failed to add device /dev/vda, errno 14 Failed to add device /dev/vda, errno 14 [ 416.611428][ T7970] BTRFS info (device loop0): fs_info exclusive_operation: 0 Failed to add device /dev/vda, errno 14 [ 416.613973][ T7971] BTRFS info (device loop0): fs_info exclusive_operation: 3 Failed to add device /dev/vda, errno 14 [ 416.615456][ T7972] BTRFS info (device loop0): fs_info exclusive_operation: 3 Failed to add device /dev/vda, errno 14 [ 416.617528][ T7973] BTRFS info (device loop0): fs_info exclusive_operation: 3 Failed to add device /dev/vda, errno 14 [ 416.618359][ T7974] BTRFS info (device loop0): fs_info exclusive_operation: 3 Failed to add device /dev/vda, errno 14 [ 416.622589][ T7975] BTRFS info (device loop0): fs_info exclusive_operation: 3 Failed to add device /dev/vda, errno 14 [ 416.624034][ T7976] BTRFS info (device loop0): fs_info exclusive_operation: 3 Failed to add device /dev/vda, errno 14 [ 416.626420][ T7977] BTRFS info (device loop0): fs_info exclusive_operation: 3 Failed to add device /dev/vda, errno 14 [ 416.627643][ T7978] BTRFS info (device loop0): fs_info exclusive_operation: 3 Failed to add device /dev/vda, errno 14 [ 416.629006][ T7979] BTRFS info (device loop0): fs_info exclusive_operation: 3 [ 416.630298][ T7980] BTRFS info (device loop0): fs_info exclusive_operation: 3 Fai ---truncated---

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlinuxsid7.2.12-1fixed
Debianlinuxforky7.2.12-1fixed
Debianlinuxtrixie6.12.107-1fixed
Debianlinuxtrixie-security6.12.113-1fixed
Debianlinuxbookworm6.1.176-1fixed
Debianlinuxbookworm-security6.1.190-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlinuxsourcesid6.3.7-1not yet assignedNot reportedNot reported
Debianlinuxsourceforky6.3.7-1not yet assignedNot reportedNot reported
Debianlinuxsourcetrixie6.3.7-1not yet assignedNot reportedNot reported
Debianlinuxsourcebookworm6.1.37-1not yet assignedNot reportedNot reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [bpftool]Unknown

    Source package: [linux]

    Details (6)
    • 7.1.0+6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 7.1.0+6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 7.5.0+6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 7.5.0+6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 7.1.0+6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 7.1.0+6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • [intel-sdsi]Unknown

    Source package: [linux]

    Details (1)
    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • [libcpupower1]Unknown

    Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • [linux-bpf-dev]Unknown

    Source package: [linux]

    Details (2)
    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (2)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (4)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • [linux-doc]Unknown

    Source package: [linux]

    Details (32)
    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.43-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.43-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.57-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.57-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.63-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.63-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.69-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.69-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.73-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.73-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.74-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.74-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.85-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.85-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.86-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.86-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.88-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.88-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.90-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.90-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.90-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.90-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.94-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.94-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.12.95-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • [linux-doc-6.1]Unknown

    Source package: [linux]

    Details (6)
    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · arm64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · arm64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (2)
    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (2)
    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · arm64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

  • Source package: [linux]

    Details (1)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.37-1

      dsa · linux · debian · bookworm; dsa · linux · debian · 12

Next results

Observed:

References