Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-54180

published

btrfs: handle case when repair happens with dev-replace

Published
30 Dec 2025, 12:08:51 UTC
Updated
11 May 2026, 19:56:59 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxad6d620e2a5704f6bf3a39c92a75aad962c51cb3 to < a7018b40b49c37fb55736499f790ec0d2b381ae4 · ad6d620e2a5704f6bf3a39c92a75aad962c51cb3 to < 53e9d6851b56626885476a2966194ba994f8bb4b · ad6d620e2a5704f6bf3a39c92a75aad962c51cb3 to < d73a27b86fc722c28a26ec64002e3a7dc86d1c07 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.8 (affected) · 0 to < 3.8 (unaffected · semver) · 6.0.19 through 6.0.* (unaffected · semver) · 6.1.5 through 6.1.* (unaffected · semver) · 6.2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultaarch64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaults390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultx86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
Show 41 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultaarch64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaults390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultx86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultaarch64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaults390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultaarch64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-defaults390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultx86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseaarch64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-bases390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-basex86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develaarch64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-devels390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develx86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgrafts390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftx86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-devels390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develx86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-default-mans390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-develnoarch Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-macrosnoarch Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-sourcenoarch Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-symsaarch64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-symsppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-symss390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kernel-symsx86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_336-defaultppc64le Advisory build 1-8.3.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_336-defaults390x Advisory build 1-8.3.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_336-defaultx86_64 Advisory build 1-8.3.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultaarch64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultppc64le Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaults390x Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.336.1 SUSE-SU-2026:4892-1

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: handle case when repair happens with dev-replace [BUG] There is a bug report that a BUG_ON() in btrfs_repair_io_failure() (originally repair_io_failure() in v6.0 kernel) got triggered when replacing a unreliable disk: BTRFS warning (device sda1): csum failed root 257 ino 2397453 off 39624704 csum 0xb0d18c75 expected csum 0x4dae9c5e mirror 3 kernel BUG at fs/btrfs/extent_io.c:2380! invalid opcode: 0000 [#1] PREEMPT SMP NOPTI CPU: 9 PID: 3614331 Comm: kworker/u257:2 Tainted: G OE 6.0.0-5-amd64 #1 Debian 6.0.10-2 Hardware name: Micro-Star International Co., Ltd. MS-7C60/TRX40 PRO WIFI (MS-7C60), BIOS 2.70 07/01/2021 Workqueue: btrfs-endio btrfs_end_bio_work [btrfs] RIP: 0010:repair_io_failure+0x24a/0x260 [btrfs] Call Trace: <TASK> clean_io_failure+0x14d/0x180 [btrfs] end_bio_extent_readpage+0x412/0x6e0 [btrfs] ? __switch_to+0x106/0x420 process_one_work+0x1c7/0x380 worker_thread+0x4d/0x380 ? rescuer_thread+0x3a0/0x3a0 kthread+0xe9/0x110 ? kthread_complete_and_exit+0x20/0x20 ret_from_fork+0x22/0x30 [CAUSE] Before the BUG_ON(), we got some read errors from the replace target first, note the mirror number (3, which is beyond RAID1 duplication, thus it's read from the replace target device). Then at the BUG_ON() location, we are trying to writeback the repaired sectors back the failed device. The check looks like this: ret = btrfs_map_block(fs_info, BTRFS_MAP_WRITE, logical, &map_length, &bioc, mirror_num); if (ret) goto out_counter_dec; BUG_ON(mirror_num != bioc->mirror_num); But inside btrfs_map_block(), we can modify bioc->mirror_num especially for dev-replace: if (dev_replace_is_ongoing && mirror_num == map->num_stripes + 1 && !need_full_stripe(op) && dev_replace->tgtdev != NULL) { ret = get_extra_mirror_from_replace(fs_info, logical, *length, dev_replace->srcdev->devid, &mirror_num, &physical_to_patch_in_first_stripe); patch_the_first_stripe_for_dev_replace = 1; } Thus if we're repairing the replace target device, we're going to trigger that BUG_ON(). But in reality, the read failure from the replace target device may be that, our replace hasn't reached the range we're reading, thus we're reading garbage, but with replace running, the range would be properly filled later. Thus in that case, we don't need to do anything but let the replace routine to handle it. [FIX] Instead of a BUG_ON(), just skip the repair if we're repairing the device replace target device.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ad6d620e2a5704f6bf3a39c92a75aad962c51cb3 to < a7018b40b49c37fb55736499f790ec0d2b381ae4 (affected · git)ad6d620e2a5704f6bf3a39c92a75aad962c51cb3 to < 53e9d6851b56626885476a2966194ba994f8bb4b (affected · git)ad6d620e2a5704f6bf3a39c92a75aad962c51cb3 to < d73a27b86fc722c28a26ec64002e3a7dc86d1c07 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.8 (affected)0 to < 3.8 (unaffected · semver)6.0.19 through 6.0.* (unaffected · semver)6.1.5 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

btrfs: handle case when repair happens with dev-replace

Provenance

Schema
5.2
Searchable
yes
Content hash
24e366b91d3d073df0d7919a7201dce11ad66f1020bfb8da1f13ae914a681b48
Ingested
23 Sep 2026, 08:15:07 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected