CVE catalog

CVE-2023-53247

linux: CVE-2023-53247

[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.15% · Oct 25, 2026

In the Linux kernel, the following vulnerability has been resolved: btrfs: set_page_extent_mapped after read_folio in btrfs_cont_expand While trying to get the subpage blocksize tests running, I hit the following panic on generic/476 assertion failed: PagePrivate(page) && page->private, in fs/btrfs/subpage.c:229 kernel BUG at fs/btrfs/subpage.c:229! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP CPU: 1 PID: 1453 Comm: fsstress Not tainted 6.4.0-rc7+ #12 Hardware name: QEMU KVM Virtual Machine, BIOS edk2-20230301gitf80f052277c8-26.fc38 03/01/2023 pstate: 61400005 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : btrfs_subpage_assert+0xbc/0xf0 lr : btrfs_subpage_assert+0xbc/0xf0 Call trace: btrfs_subpage_assert+0xbc/0xf0 btrfs_subpage_clear_checked+0x38/0xc0 btrfs_page_clear_checked+0x48/0x98 btrfs_truncate_block+0x5d0/0x6a8 btrfs_cont_expand+0x5c/0x528 btrfs_write_check.isra.0+0xf8/0x150 btrfs_buffered_write+0xb4/0x760 btrfs_do_write_iter+0x2f8/0x4b0 btrfs_file_write_iter+0x1c/0x30 do_iter_readv_writev+0xc8/0x158 do_iter_write+0x9c/0x210 vfs_iter_write+0x24/0x40 iter_file_splice_write+0x224/0x390 direct_splice_actor+0x38/0x68 splice_direct_to_actor+0x12c/0x260 do_splice_direct+0x90/0xe8 generic_copy_file_range+0x50/0x90 vfs_copy_file_range+0x29c/0x470 __arm64_sys_copy_file_range+0xcc/0x498 invoke_syscall.constprop.0+0x80/0xd8 do_el0_svc+0x6c/0x168 el0_svc+0x50/0x1b0 el0t_64_sync_handler+0x114/0x120 el0t_64_sync+0x194/0x198 This happens because during btrfs_cont_expand we'll get a page, set it as mapped, and if it's not Uptodate we'll read it. However between the read and re-locking the page we could have called release_folio() on the page, but left the page in the file mapping. release_folio() can clear the page private, and thus further down we blow up when we go to modify the subpage bits. Fix this by putting the set_page_extent_mapped() after the read. This is safe because read_folio() will call set_page_extent_mapped() before it does the read, and then if we clear page private but leave it on the mapping we're completely safe re-setting set_page_extent_mapped(). With this patch I can now run generic/476 without panicing.

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.4.11-1not yet assignedNot reportedNot reported
Debianlinuxsourceforky6.4.11-1not yet assignedNot reportedNot reported
Debianlinuxsourcetrixie6.4.11-1not yet assignedNot reportedNot reported
Debianlinuxsourcebookworm6.1.52-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.52-1

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

    • 7.1.0+6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.52-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.52-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.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.52-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.52-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.52-1

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

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.52-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.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.1.52-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.52-1

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

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.1.52-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.52-1

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

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

  • Source package: [linux]

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

      Fixed · Fixed: 6.1.52-1

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

Next results

Observed:

References