{
  "cveId": "CVE-2022-48902",
  "url": "https://patchblox.com/security/cve/CVE-2022-48902",
  "summary": "CVE-2022-48902 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-48902, released August 22, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  btrfs: do not WARN_ON() if we have PageError set...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  btrfs: do not WARN_ON() if we have PageError set  Whenever we do any extent buffer operations we call assert_eb_page_uptodate() to complain loudly if we\u0027re operating on an non-uptodate page.  Our overnight tests caught this warning earlier this week    WARNING: CPU: 1 PID: 553508 at fs/btrfs/extent_io.c:6849 assert_eb_page_uptodate\u002B0x3f/0x50   CPU: 1 PID: 553508 Comm: kworker/u4:13 Tainted: G        W         5.17.0-rc3\u002B #564   Hardware name: QEMU Standard PC (Q35 \u002B ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014   Workqueue: btrfs-cache btrfs_work_helper   RIP: 0010:assert_eb_page_uptodate\u002B0x3f/0x50   RSP: 0018:ffffa961440a7c68 EFLAGS: 00010246   RAX: 0017ffffc0002112 RBX: ffffe6e74453f9c0 RCX: 0000000000001000   RDX: ffffe6e74467c887 RSI: ffffe6e74453f9c0 RDI: ffff8d4c5efc2fc0   RBP: 0000000000000d56 R08: ffff8d4d4a224000 R09: 0000000000000000   R10: 00015817fa9d1ef0 R11: 000000000000000c R12: 00000000000007b1   R13: ffff8d4c5efc2fc0 R14: 0000000001500000 R15: 0000000001cb1000   FS:  0000000000000000(0000) GS:ffff8d4dbbd00000(0000) knlGS:0000000000000000   CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033   CR2: 00007ff31d3448d8 CR3: 0000000118be8004 CR4: 0000000000370ee0   Call Trace:     extent_buffer_test_bit\u002B0x3f/0x70    free_space_test_bit\u002B0xa6/0xc0    load_free_space_tree\u002B0x1f6/0x470    caching_thread\u002B0x454/0x630    ? rcu_read_lock_sched_held\u002B0x12/0x60    ? rcu_read_lock_sched_held\u002B0x12/0x60    ? rcu_read_lock_sched_held\u002B0x12/0x60    ? lock_release\u002B0x1f0/0x2d0    btrfs_work_helper\u002B0xf2/0x3e0    ? lock_release\u002B0x1f0/0x2d0    ? finish_task_switch.isra.0\u002B0xf9/0x3a0    process_one_work\u002B0x26d/0x580    ? process_one_work\u002B0x580/0x580    worker_thread\u002B0x55/0x3b0    ? process_one_work\u002B0x580/0x580    kthread\u002B0xf0/0x120    ? kthread_complete_and_exit\u002B0x20/0x20    ret_from_fork\u002B0x1f/0x30  This was partially fixed by c2e39305299f01 (\u0022btrfs: clear extent buffer uptodate when we fail to write it\u0022), however all that fix did was keep us from finding extent buffers after a failed writeout.  It didn\u0027t keep us from continuing to use a buffer that we already had found.  In this case we\u0027re searching the commit root to cache the block group, so we can start committing the transaction and switch the commit root and then start writing.  After the switch we can look up an extent buffer that hasn\u0027t been written yet and start processing that block group.  Then we fail to write that block out and clear Uptodate on the page, and then we start spewing these errors.  Normally we\u0027re protected by the tree lock to a certain degree here.  If we read a block we have that block read locked, and we block the writer from locking the block before we submit it for the write.  However this isn\u0027t necessarily fool proof because the read could happen before we do the submit_bio and after we locked and unlocked the extent buffer.  Also in this particular case we have path-\u003Eskip_locking set, so that won\u0027t save us here.  We\u0027ll simply get a block that was valid when we read it, but became invalid while we were using it.  What we really want is to catch the case where we\u0027ve \u0022read\u0022 a block but it\u0027s not marked Uptodate.  On read we ClearPageError(), so if we\u0027re !Uptodate and !Error we know we didn\u0027t do the right thing for reading the page.  Fix this by checking !Uptodate \u0026\u0026 !Error, this way we will not complain if our buffer gets invalidated while we\u0027re using it, and we\u0027ll maintain the spirit of the check which is to make sure we have a fully in-cache block while we\u0027re messing with it.",
  "published": "2024-08-22T02:15:04Z",
  "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",
  "epss": 0.0021,
  "epssPercentile": 0.11206,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "5.16.14-1",
      "fix": "DEBIAN-CVE-2022-48902",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-48902",
      "released": "2024-08-22T02:15:04Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "5.16.14-1",
      "fix": "DEBIAN-CVE-2022-48902",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-48902",
      "released": "2024-08-22T02:15:04Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "5.16.14-1",
      "fix": "DEBIAN-CVE-2022-48902",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-48902",
      "released": "2024-08-22T02:15:04Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T00:53:09Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}