{
  "cveId": "CVE-2024-50225",
  "url": "https://patchblox.com/security/cve/CVE-2024-50225",
  "summary": "CVE-2024-50225 is fixed in 26 products on 1 platform, first by DEBIAN-CVE-2024-50225, released November 9, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "btrfs: fix error propagation of split bios",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  btrfs: fix error propagation of split bios  The purpose of btrfs_bbio_propagate_error() shall be propagating an error of split bio to its original btrfs_bio, and tell the error to the upper layer. However, it\u0027s not working well on some cases.  * Case 1. Immediate (or quick) end_bio with an error  When btrfs sends btrfs_bio to mirrored devices, btrfs calls btrfs_bio_end_io() when all the mirroring bios are completed. If that btrfs_bio was split, it is from btrfs_clone_bioset and its end_io function is btrfs_orig_write_end_io. For this case, btrfs_bbio_propagate_error() accesses the orig_bbio\u0027s bio context to increase the error count.  That works well in most cases. However, if the end_io is called enough fast, orig_bbio\u0027s (remaining part after split) bio context may not be properly set at that time. Since the bio context is set when the orig_bbio (the last btrfs_bio) is sent to devices, that might be too late for earlier split btrfs_bio\u0027s completion.  That will result in NULL pointer dereference.  That bug is easily reproducible by running btrfs/146 on zoned devices [1] and it shows the following trace.  [1] You need raid-stripe-tree feature as it create \u0022-d raid0 -m raid1\u0022 FS.    BUG: kernel NULL pointer dereference, address: 0000000000000020   #PF: supervisor read access in kernel mode   #PF: error_code(0x0000) - not-present page   PGD 0 P4D 0   Oops: Oops: 0000 [#1] PREEMPT SMP PTI   CPU: 1 UID: 0 PID: 13 Comm: kworker/u32:1 Not tainted 6.11.0-rc7-BTRFS-ZNS\u002B #474   Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011   Workqueue: writeback wb_workfn (flush-btrfs-5)   RIP: 0010:btrfs_bio_end_io\u002B0xae/0xc0 [btrfs]   BTRFS error (device dm-0): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0   RSP: 0018:ffffc9000006f248 EFLAGS: 00010246   RAX: 0000000000000000 RBX: ffff888005a7f080 RCX: ffffc9000006f1dc   RDX: 0000000000000000 RSI: 000000000000000a RDI: ffff888005a7f080   RBP: ffff888011dfc540 R08: 0000000000000000 R09: 0000000000000001   R10: ffffffff82e508e0 R11: 0000000000000005 R12: ffff88800ddfbe58   R13: ffff888005a7f080 R14: ffff888005a7f158 R15: ffff888005a7f158   FS:  0000000000000000(0000) GS:ffff88803ea80000(0000) knlGS:0000000000000000   CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033   CR2: 0000000000000020 CR3: 0000000002e22006 CR4: 0000000000370ef0   DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000   DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400   Call Trace:    \u003CTASK\u003E    ? __die_body.cold\u002B0x19/0x26    ? page_fault_oops\u002B0x13e/0x2b0    ? _printk\u002B0x58/0x73    ? do_user_addr_fault\u002B0x5f/0x750    ? exc_page_fault\u002B0x76/0x240    ? asm_exc_page_fault\u002B0x22/0x30    ? btrfs_bio_end_io\u002B0xae/0xc0 [btrfs]    ? btrfs_log_dev_io_error\u002B0x7f/0x90 [btrfs]    btrfs_orig_write_end_io\u002B0x51/0x90 [btrfs]    dm_submit_bio\u002B0x5c2/0xa50 [dm_mod]    ? find_held_lock\u002B0x2b/0x80    ? blk_try_enter_queue\u002B0x90/0x1e0    __submit_bio\u002B0xe0/0x130    ? ktime_get\u002B0x10a/0x160    ? lockdep_hardirqs_on\u002B0x74/0x100    submit_bio_noacct_nocheck\u002B0x199/0x410    btrfs_submit_bio\u002B0x7d/0x150 [btrfs]    btrfs_submit_chunk\u002B0x1a1/0x6d0 [btrfs]    ? lockdep_hardirqs_on\u002B0x74/0x100    ? __folio_start_writeback\u002B0x10/0x2c0    btrfs_submit_bbio\u002B0x1c/0x40 [btrfs]    submit_one_bio\u002B0x44/0x60 [btrfs]    submit_extent_folio\u002B0x13f/0x330 [btrfs]    ? btrfs_set_range_writeback\u002B0xa3/0xd0 [btrfs]    extent_writepage_io\u002B0x18b/0x360 [btrfs]    extent_write_locked_range\u002B0x17c/0x340 [btrfs]    ? __pfx_end_bbio_data_write\u002B0x10/0x10 [btrfs]    run_delalloc_cow\u002B0x71/0xd0 [btrfs]    btrfs_run_delalloc_range\u002B0x176/0x500 [btrfs]    ? find_lock_delalloc_range\u002B0x119/0x260 [btrfs]    writepage_delalloc\u002B0x2ab/0x480 [btrfs]    extent_write_cache_pages\u002B0x236/0x7d0 [btrfs]    btrfs_writepages\u002B0x72/0x130 [btrfs]    do_writepages\u002B0xd4/0x240    ? find_held_lock\u002B0x2b/0x80    ? wbc_attach_and_unlock_inode\u002B0x12c/0x290    ? wbc_attach_and_unlock_inode\u002B0x12c/0x29 ---truncated---",
  "published": "2024-11-09T11:15:07Z",
  "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": "NULL Pointer Dereference",
  "epss": 0.00214,
  "epssPercentile": 0.118,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-50225",
  "fixes": [
    {
      "platform": "linux",
      "product": "dtb-aarch64",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-coco_debug",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1.150600.12.12.6",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1.150600.12.12.6",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-kvmsmall",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6-RT_Update_6",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.1.3.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6_Update_6",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.13.3.5",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-qa",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt_debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.11.7-1",
      "fix": "DEBIAN-CVE-2024-50225",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-50225",
      "released": "2024-11-09T11:15:07Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.11.7-1",
      "fix": "DEBIAN-CVE-2024-50225",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-50225",
      "released": "2024-11-09T11:15:07Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T01:18:40Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}