{
  "cveId": "CVE-2022-48869",
  "url": "https://patchblox.com/security/cve/CVE-2022-48869",
  "summary": "CVE-2022-48869 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-48869, released August 21, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  USB: gadgetfs: Fix race between mounting and unm...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  USB: gadgetfs: Fix race between mounting and unmounting  The syzbot fuzzer and Gerald Lee have identified a use-after-free bug in the gadgetfs driver, involving processes concurrently mounting and unmounting the gadgetfs filesystem.  In particular, gadgetfs_fill_super() can race with gadgetfs_kill_sb(), causing the latter to deallocate the_device while the former is using it.  The output from KASAN says, in part:  BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:102 [inline] BUG: KASAN: use-after-free in atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:176 [inline] BUG: KASAN: use-after-free in __refcount_sub_and_test include/linux/refcount.h:272 [inline] BUG: KASAN: use-after-free in __refcount_dec_and_test include/linux/refcount.h:315 [inline] BUG: KASAN: use-after-free in refcount_dec_and_test include/linux/refcount.h:333 [inline] BUG: KASAN: use-after-free in put_dev drivers/usb/gadget/legacy/inode.c:159 [inline] BUG: KASAN: use-after-free in gadgetfs_kill_sb\u002B0x33/0x100 drivers/usb/gadget/legacy/inode.c:2086 Write of size 4 at addr ffff8880276d7840 by task syz-executor126/18689  CPU: 0 PID: 18689 Comm: syz-executor126 Not tainted 6.1.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace:  \u003CTASK\u003E ...  atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:176 [inline]  __refcount_sub_and_test include/linux/refcount.h:272 [inline]  __refcount_dec_and_test include/linux/refcount.h:315 [inline]  refcount_dec_and_test include/linux/refcount.h:333 [inline]  put_dev drivers/usb/gadget/legacy/inode.c:159 [inline]  gadgetfs_kill_sb\u002B0x33/0x100 drivers/usb/gadget/legacy/inode.c:2086  deactivate_locked_super\u002B0xa7/0xf0 fs/super.c:332  vfs_get_super fs/super.c:1190 [inline]  get_tree_single\u002B0xd0/0x160 fs/super.c:1207  vfs_get_tree\u002B0x88/0x270 fs/super.c:1531  vfs_fsconfig_locked fs/fsopen.c:232 [inline]  The simplest solution is to ensure that gadgetfs_fill_super() and gadgetfs_kill_sb() are serialized by making them both acquire a new mutex.",
  "published": "2024-08-21T07:15:04Z",
  "severity": "medium",
  "cvss": 4.7,
  "cvssVector": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00232,
  "epssPercentile": 0.1418,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.1.8-1",
      "fix": "DEBIAN-CVE-2022-48869",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-48869",
      "released": "2024-08-21T07:15:04Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.1.8-1",
      "fix": "DEBIAN-CVE-2022-48869",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-48869",
      "released": "2024-08-21T07:15:04Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.1.8-1",
      "fix": "DEBIAN-CVE-2022-48869",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-48869",
      "released": "2024-08-21T07: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"
  }
}