{
  "cveId": "CVE-2022-50304",
  "url": "https://patchblox.com/security/cve/CVE-2022-50304",
  "summary": "CVE-2022-50304 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-50304, released September 15, 2025. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "mtd: core: fix possible resource leak in init_mtd()",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  mtd: core: fix possible resource leak in init_mtd()  I got the error report while inject fault in init_mtd():  sysfs: cannot create duplicate filename \u0027/devices/virtual/bdi/mtd-0\u0027 Call Trace:  \u003CTASK\u003E  dump_stack_lvl\u002B0x67/0x83  sysfs_warn_dup\u002B0x60/0x70  sysfs_create_dir_ns\u002B0x109/0x120  kobject_add_internal\u002B0xce/0x2f0  kobject_add\u002B0x98/0x110  device_add\u002B0x179/0xc00  device_create_groups_vargs\u002B0xf4/0x100  device_create\u002B0x7b/0xb0  bdi_register_va.part.13\u002B0x58/0x2d0  bdi_register\u002B0x9b/0xb0  init_mtd\u002B0x62/0x171 [mtd]  do_one_initcall\u002B0x6c/0x3c0  do_init_module\u002B0x58/0x222  load_module\u002B0x268e/0x27d0  __do_sys_finit_module\u002B0xd5/0x140  do_syscall_64\u002B0x37/0x90  entry_SYSCALL_64_after_hwframe\u002B0x63/0xcd  \u003C/TASK\u003E kobject_add_internal failed for mtd-0 with -EEXIST, don\u0027t try to register \tthings with the same name in the same directory. Error registering mtd class or bdi: -17  If init_mtdchar() fails in init_mtd(), mtd_bdi will not be unregistered, as a result, we can\u0027t load the mtd module again, to fix this by calling bdi_unregister(mtd_bdi) after out_procfs label.",
  "published": "2025-09-15T15:15:41Z",
  "severity": "Moderate",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "cwe": "Missing Release of Memory after Effective Lifetime",
  "epss": 0.00157,
  "epssPercentile": 0.04906,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-50304",
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.1.4-1",
      "fix": "DEBIAN-CVE-2022-50304",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-50304",
      "released": "2025-09-15T15:15:41Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.1.4-1",
      "fix": "DEBIAN-CVE-2022-50304",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-50304",
      "released": "2025-09-15T15:15:41Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.1.4-1",
      "fix": "DEBIAN-CVE-2022-50304",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-50304",
      "released": "2025-09-15T15:15:41Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}