CVE-2022-50626 (GCVE-0-2022-50626)

Vulnerability from cvelistv5 – Published: 2025-12-08 01:16 – Updated: 2026-05-11 19:22
VLAI
Title
media: dvb-usb: fix memory leak in dvb_usb_adapter_init()
Summary
In the Linux kernel, the following vulnerability has been resolved: media: dvb-usb: fix memory leak in dvb_usb_adapter_init() Syzbot reports a memory leak in "dvb_usb_adapter_init()". The leak is due to not accounting for and freeing current iteration's adapter->priv in case of an error. Currently if an error occurs, it will exit before incrementing "num_adapters_initalized", which is used as a reference counter to free all adap->priv in "dvb_usb_adapter_exit()". There are multiple error paths that can exit from before incrementing the counter. Including the error handling paths for "dvb_usb_adapter_stream_init()", "dvb_usb_adapter_dvb_init()" and "dvb_usb_adapter_frontend_init()" within "dvb_usb_adapter_init()". This means that in case of an error in any of these functions the current iteration is not accounted for and the current iteration's adap->priv is not freed. Fix this by freeing the current iteration's adap->priv in the "stream_init_err:" label in the error path. The rest of the (accounted for) adap->priv objects are freed in dvb_usb_adapter_exit() as expected using the num_adapters_initalized variable. Syzbot report: BUG: memory leak unreferenced object 0xffff8881172f1a00 (size 512): comm "kworker/0:2", pid 139, jiffies 4294994873 (age 10.960s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<ffffffff844af012>] dvb_usb_adapter_init drivers/media/usb/dvb-usb/dvb-usb-init.c:75 [inline] [<ffffffff844af012>] dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:184 [inline] [<ffffffff844af012>] dvb_usb_device_init.cold+0x4e5/0x79e drivers/media/usb/dvb-usb/dvb-usb-init.c:308 [<ffffffff830db21d>] dib0700_probe+0x8d/0x1b0 drivers/media/usb/dvb-usb/dib0700_core.c:883 [<ffffffff82d3fdc7>] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396 [<ffffffff8274ab37>] call_driver_probe drivers/base/dd.c:542 [inline] [<ffffffff8274ab37>] really_probe.part.0+0xe7/0x310 drivers/base/dd.c:621 [<ffffffff8274ae6c>] really_probe drivers/base/dd.c:583 [inline] [<ffffffff8274ae6c>] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:752 [<ffffffff8274af6a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:782 [<ffffffff8274b786>] __device_attach_driver+0xf6/0x140 drivers/base/dd.c:899 [<ffffffff82747c87>] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427 [<ffffffff8274b352>] __device_attach+0x122/0x260 drivers/base/dd.c:970 [<ffffffff827498f6>] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487 [<ffffffff82745cdb>] device_add+0x5fb/0xdf0 drivers/base/core.c:3405 [<ffffffff82d3d202>] usb_set_configuration+0x8f2/0xb80 drivers/usb/core/message.c:2170 [<ffffffff82d4dbfc>] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238 [<ffffffff82d3f49c>] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293 [<ffffffff8274ab37>] call_driver_probe drivers/base/dd.c:542 [inline] [<ffffffff8274ab37>] really_probe.part.0+0xe7/0x310 drivers/base/dd.c:621 [<ffffffff8274ae6c>] really_probe drivers/base/dd.c:583 [inline] [<ffffffff8274ae6c>] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:752
Severity
No CVSS data available.
Impacted products
Vendor Product Version
Linux Linux Affected: 4d43e13f723e12734257277cc38497fab1efc605 , < 733bc9e226da2a7f43b10031b8ebfc26d89ec4bd (git)
Affected: 4d43e13f723e12734257277cc38497fab1efc605 , < e5a49140035591d13ff57a7537c65217e5af0d15 (git)
Affected: 4d43e13f723e12734257277cc38497fab1efc605 , < 21b6b0c9f3796e6917e90db403dae9e74025fc40 (git)
Affected: 4d43e13f723e12734257277cc38497fab1efc605 , < 17217737c174883dd975885ab4bee4b00f517239 (git)
Affected: 4d43e13f723e12734257277cc38497fab1efc605 , < 7d7ab25ead969594df05fb09ee46ca931d46c5c8 (git)
Affected: 4d43e13f723e12734257277cc38497fab1efc605 , < d0af6220bb1eed8225a5511de5a3bd386b94afa4 (git)
Affected: 4d43e13f723e12734257277cc38497fab1efc605 , < e5d01eb6dc2f699a395d3e731c58a9b3bb4e269f (git)
Affected: 4d43e13f723e12734257277cc38497fab1efc605 , < 93bbf2ed428142aa9a9693721230b28571678bf8 (git)
Affected: 4d43e13f723e12734257277cc38497fab1efc605 , < 94d90fb06b94a90c176270d38861bcba34ce377d (git)
Create a notification for this product.
Linux Linux Affected: 2.6.19
Unaffected: 0 , < 2.6.19 (semver)
Unaffected: 4.9.337 , ≤ 4.9.* (semver)
Unaffected: 4.14.303 , ≤ 4.14.* (semver)
Unaffected: 4.19.270 , ≤ 4.19.* (semver)
Unaffected: 5.4.229 , ≤ 5.4.* (semver)
Unaffected: 5.10.163 , ≤ 5.10.* (semver)
Unaffected: 5.15.86 , ≤ 5.15.* (semver)
Unaffected: 6.0.16 , ≤ 6.0.* (semver)
Unaffected: 6.1.2 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/usb/dvb-usb/dvb-usb-init.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "733bc9e226da2a7f43b10031b8ebfc26d89ec4bd",
              "status": "affected",
              "version": "4d43e13f723e12734257277cc38497fab1efc605",
              "versionType": "git"
            },
            {
              "lessThan": "e5a49140035591d13ff57a7537c65217e5af0d15",
              "status": "affected",
              "version": "4d43e13f723e12734257277cc38497fab1efc605",
              "versionType": "git"
            },
            {
              "lessThan": "21b6b0c9f3796e6917e90db403dae9e74025fc40",
              "status": "affected",
              "version": "4d43e13f723e12734257277cc38497fab1efc605",
              "versionType": "git"
            },
            {
              "lessThan": "17217737c174883dd975885ab4bee4b00f517239",
              "status": "affected",
              "version": "4d43e13f723e12734257277cc38497fab1efc605",
              "versionType": "git"
            },
            {
              "lessThan": "7d7ab25ead969594df05fb09ee46ca931d46c5c8",
              "status": "affected",
              "version": "4d43e13f723e12734257277cc38497fab1efc605",
              "versionType": "git"
            },
            {
              "lessThan": "d0af6220bb1eed8225a5511de5a3bd386b94afa4",
              "status": "affected",
              "version": "4d43e13f723e12734257277cc38497fab1efc605",
              "versionType": "git"
            },
            {
              "lessThan": "e5d01eb6dc2f699a395d3e731c58a9b3bb4e269f",
              "status": "affected",
              "version": "4d43e13f723e12734257277cc38497fab1efc605",
              "versionType": "git"
            },
            {
              "lessThan": "93bbf2ed428142aa9a9693721230b28571678bf8",
              "status": "affected",
              "version": "4d43e13f723e12734257277cc38497fab1efc605",
              "versionType": "git"
            },
            {
              "lessThan": "94d90fb06b94a90c176270d38861bcba34ce377d",
              "status": "affected",
              "version": "4d43e13f723e12734257277cc38497fab1efc605",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/usb/dvb-usb/dvb-usb-init.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.19"
            },
            {
              "lessThan": "2.6.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.337",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.303",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.337",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.303",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: dvb-usb: fix memory leak in dvb_usb_adapter_init()\n\nSyzbot reports a memory leak in \"dvb_usb_adapter_init()\".\nThe leak is due to not accounting for and freeing current iteration\u0027s\nadapter-\u003epriv in case of an error. Currently if an error occurs,\nit will exit before incrementing \"num_adapters_initalized\",\nwhich is used as a reference counter to free all adap-\u003epriv\nin \"dvb_usb_adapter_exit()\". There are multiple error paths that\ncan exit from before incrementing the counter. Including the\nerror handling paths for \"dvb_usb_adapter_stream_init()\",\n\"dvb_usb_adapter_dvb_init()\" and \"dvb_usb_adapter_frontend_init()\"\nwithin \"dvb_usb_adapter_init()\".\n\nThis means that in case of an error in any of these functions the\ncurrent iteration is not accounted for and the current iteration\u0027s\nadap-\u003epriv is not freed.\n\nFix this by freeing the current iteration\u0027s adap-\u003epriv in the\n\"stream_init_err:\" label in the error path. The rest of the\n(accounted for) adap-\u003epriv objects are freed in dvb_usb_adapter_exit()\nas expected using the num_adapters_initalized variable.\n\nSyzbot report:\n\nBUG: memory leak\nunreferenced object 0xffff8881172f1a00 (size 512):\n  comm \"kworker/0:2\", pid 139, jiffies 4294994873 (age 10.960s)\n  hex dump (first 32 bytes):\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\nbacktrace:\n    [\u003cffffffff844af012\u003e] dvb_usb_adapter_init drivers/media/usb/dvb-usb/dvb-usb-init.c:75 [inline]\n    [\u003cffffffff844af012\u003e] dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:184 [inline]\n    [\u003cffffffff844af012\u003e] dvb_usb_device_init.cold+0x4e5/0x79e drivers/media/usb/dvb-usb/dvb-usb-init.c:308\n    [\u003cffffffff830db21d\u003e] dib0700_probe+0x8d/0x1b0 drivers/media/usb/dvb-usb/dib0700_core.c:883\n    [\u003cffffffff82d3fdc7\u003e] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396\n    [\u003cffffffff8274ab37\u003e] call_driver_probe drivers/base/dd.c:542 [inline]\n    [\u003cffffffff8274ab37\u003e] really_probe.part.0+0xe7/0x310 drivers/base/dd.c:621\n    [\u003cffffffff8274ae6c\u003e] really_probe drivers/base/dd.c:583 [inline]\n    [\u003cffffffff8274ae6c\u003e] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:752\n    [\u003cffffffff8274af6a\u003e] driver_probe_device+0x2a/0x120 drivers/base/dd.c:782\n    [\u003cffffffff8274b786\u003e] __device_attach_driver+0xf6/0x140 drivers/base/dd.c:899\n    [\u003cffffffff82747c87\u003e] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427\n    [\u003cffffffff8274b352\u003e] __device_attach+0x122/0x260 drivers/base/dd.c:970\n    [\u003cffffffff827498f6\u003e] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487\n    [\u003cffffffff82745cdb\u003e] device_add+0x5fb/0xdf0 drivers/base/core.c:3405\n    [\u003cffffffff82d3d202\u003e] usb_set_configuration+0x8f2/0xb80 drivers/usb/core/message.c:2170\n    [\u003cffffffff82d4dbfc\u003e] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238\n    [\u003cffffffff82d3f49c\u003e] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293\n    [\u003cffffffff8274ab37\u003e] call_driver_probe drivers/base/dd.c:542 [inline]\n    [\u003cffffffff8274ab37\u003e] really_probe.part.0+0xe7/0x310 drivers/base/dd.c:621\n    [\u003cffffffff8274ae6c\u003e] really_probe drivers/base/dd.c:583 [inline]\n    [\u003cffffffff8274ae6c\u003e] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:752"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:22:29.322Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/733bc9e226da2a7f43b10031b8ebfc26d89ec4bd"
        },
        {
          "url": "https://git.kernel.org/stable/c/e5a49140035591d13ff57a7537c65217e5af0d15"
        },
        {
          "url": "https://git.kernel.org/stable/c/21b6b0c9f3796e6917e90db403dae9e74025fc40"
        },
        {
          "url": "https://git.kernel.org/stable/c/17217737c174883dd975885ab4bee4b00f517239"
        },
        {
          "url": "https://git.kernel.org/stable/c/7d7ab25ead969594df05fb09ee46ca931d46c5c8"
        },
        {
          "url": "https://git.kernel.org/stable/c/d0af6220bb1eed8225a5511de5a3bd386b94afa4"
        },
        {
          "url": "https://git.kernel.org/stable/c/e5d01eb6dc2f699a395d3e731c58a9b3bb4e269f"
        },
        {
          "url": "https://git.kernel.org/stable/c/93bbf2ed428142aa9a9693721230b28571678bf8"
        },
        {
          "url": "https://git.kernel.org/stable/c/94d90fb06b94a90c176270d38861bcba34ce377d"
        }
      ],
      "title": "media: dvb-usb: fix memory leak in dvb_usb_adapter_init()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50626",
    "datePublished": "2025-12-08T01:16:40.754Z",
    "dateReserved": "2025-12-08T01:14:55.191Z",
    "dateUpdated": "2026-05-11T19:22:29.322Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50626",
      "date": "2026-11-16",
      "epss": "0.00249",
      "percentile": "0.16299"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/media/usb/dvb-usb/dvb-usb-init.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "733bc9e226da2a7f43b10031b8ebfc26d89ec4bd",
                    "status": "affected",
                    "version": "4d43e13f723e12734257277cc38497fab1efc605",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e5a49140035591d13ff57a7537c65217e5af0d15",
                    "status": "affected",
                    "version": "4d43e13f723e12734257277cc38497fab1efc605",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "21b6b0c9f3796e6917e90db403dae9e74025fc40",
                    "status": "affected",
                    "version": "4d43e13f723e12734257277cc38497fab1efc605",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "17217737c174883dd975885ab4bee4b00f517239",
                    "status": "affected",
                    "version": "4d43e13f723e12734257277cc38497fab1efc605",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7d7ab25ead969594df05fb09ee46ca931d46c5c8",
                    "status": "affected",
                    "version": "4d43e13f723e12734257277cc38497fab1efc605",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "d0af6220bb1eed8225a5511de5a3bd386b94afa4",
                    "status": "affected",
                    "version": "4d43e13f723e12734257277cc38497fab1efc605",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e5d01eb6dc2f699a395d3e731c58a9b3bb4e269f",
                    "status": "affected",
                    "version": "4d43e13f723e12734257277cc38497fab1efc605",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "93bbf2ed428142aa9a9693721230b28571678bf8",
                    "status": "affected",
                    "version": "4d43e13f723e12734257277cc38497fab1efc605",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "94d90fb06b94a90c176270d38861bcba34ce377d",
                    "status": "affected",
                    "version": "4d43e13f723e12734257277cc38497fab1efc605",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/media/usb/dvb-usb/dvb-usb-init.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "2.6.19"
                  },
                  {
                    "lessThan": "2.6.19",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.9.*",
                    "status": "unaffected",
                    "version": "4.9.337",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.14.*",
                    "status": "unaffected",
                    "version": "4.14.303",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.19.*",
                    "status": "unaffected",
                    "version": "4.19.270",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.4.*",
                    "status": "unaffected",
                    "version": "5.4.229",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.86",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.0.*",
                    "status": "unaffected",
                    "version": "6.0.16",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: dvb-usb: fix memory leak in dvb_usb_adapter_init()\n\nSyzbot reports a memory leak in \"dvb_usb_adapter_init()\".\nThe leak is due to not accounting for and freeing current iteration\u0027s\nadapter-\u003epriv in case of an error. Currently if an error occurs,\nit will exit before incrementing \"num_adapters_initalized\",\nwhich is used as a reference counter to free all adap-\u003epriv\nin \"dvb_usb_adapter_exit()\". There are multiple error paths that\ncan exit from before incrementing the counter. Including the\nerror handling paths for \"dvb_usb_adapter_stream_init()\",\n\"dvb_usb_adapter_dvb_init()\" and \"dvb_usb_adapter_frontend_init()\"\nwithin \"dvb_usb_adapter_init()\".\n\nThis means that in case of an error in any of these functions the\ncurrent iteration is not accounted for and the current iteration\u0027s\nadap-\u003epriv is not freed.\n\nFix this by freeing the current iteration\u0027s adap-\u003epriv in the\n\"stream_init_err:\" label in the error path. The rest of the\n(accounted for) adap-\u003epriv objects are freed in dvb_usb_adapter_exit()\nas expected using the num_adapters_initalized variable.\n\nSyzbot report:\n\nBUG: memory leak\nunreferenced object 0xffff8881172f1a00 (size 512):\n  comm \"kworker/0:2\", pid 139, jiffies 4294994873 (age 10.960s)\n  hex dump (first 32 bytes):\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\nbacktrace:\n    [\u003cffffffff844af012\u003e] dvb_usb_adapter_init drivers/media/usb/dvb-usb/dvb-usb-init.c:75 [inline]\n    [\u003cffffffff844af012\u003e] dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:184 [inline]\n    [\u003cffffffff844af012\u003e] dvb_usb_device_init.cold+0x4e5/0x79e drivers/media/usb/dvb-usb/dvb-usb-init.c:308\n    [\u003cffffffff830db21d\u003e] dib0700_probe+0x8d/0x1b0 drivers/media/usb/dvb-usb/dib0700_core.c:883\n    [\u003cffffffff82d3fdc7\u003e] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396\n    [\u003cffffffff8274ab37\u003e] call_driver_probe drivers/base/dd.c:542 [inline]\n    [\u003cffffffff8274ab37\u003e] really_probe.part.0+0xe7/0x310 drivers/base/dd.c:621\n    [\u003cffffffff8274ae6c\u003e] really_probe drivers/base/dd.c:583 [inline]\n    [\u003cffffffff8274ae6c\u003e] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:752\n    [\u003cffffffff8274af6a\u003e] driver_probe_device+0x2a/0x120 drivers/base/dd.c:782\n    [\u003cffffffff8274b786\u003e] __device_attach_driver+0xf6/0x140 drivers/base/dd.c:899\n    [\u003cffffffff82747c87\u003e] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427\n    [\u003cffffffff8274b352\u003e] __device_attach+0x122/0x260 drivers/base/dd.c:970\n    [\u003cffffffff827498f6\u003e] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487\n    [\u003cffffffff82745cdb\u003e] device_add+0x5fb/0xdf0 drivers/base/core.c:3405\n    [\u003cffffffff82d3d202\u003e] usb_set_configuration+0x8f2/0xb80 drivers/usb/core/message.c:2170\n    [\u003cffffffff82d4dbfc\u003e] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238\n    [\u003cffffffff82d3f49c\u003e] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293\n    [\u003cffffffff8274ab37\u003e] call_driver_probe drivers/base/dd.c:542 [inline]\n    [\u003cffffffff8274ab37\u003e] really_probe.part.0+0xe7/0x310 drivers/base/dd.c:621\n    [\u003cffffffff8274ae6c\u003e] really_probe drivers/base/dd.c:583 [inline]\n    [\u003cffffffff8274ae6c\u003e] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:752"
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmedia: dvb-usb: correcci\u00f3n de fuga de memoria en dvb_usb_adapter_init()\n\nSyzbot informa una fuga de memoria en \u2019dvb_usb_adapter_init()\u2019.\nLa fuga se debe a no contabilizar y liberar el adapter -\u003e priv de la iteraci\u00f3n actual en caso de un error. Actualmente, si ocurre un error, saldr\u00e1 antes de incrementar \u2019num_adapters_initalized\u2019, que se utiliza como contador de referencia para liberar todos los adap -\u003e priv en \u2019dvb_usb_adapter_exit()\u2019. Existen m\u00faltiples rutas de error que pueden salir antes de incrementar el contador. Incluyendo las rutas de manejo de errores para \u2019dvb_usb_adapter_stream_init()\u2019, \u2019dvb_usb_adapter_dvb_init()\u2019 y \u2019dvb_usb_adapter_frontend_init()\u2019 dentro de \u2019dvb_usb_adapter_init()\u2019.\n\nEsto significa que en caso de un error en cualquiera de estas funciones, la iteraci\u00f3n actual no se contabiliza y el adap -\u003e priv de la iteraci\u00f3n actual no se libera.\n\nSe corrige esto liberando el adap -\u003e priv de la iteraci\u00f3n actual en la etiqueta \u2019stream_init_err:\u2019 en la ruta de error. El resto de los objetos adap -\u003e priv (contabilizados) se liberan en dvb_usb_adapter_exit() como se espera utilizando la variable num_adapters_initalized.\n\nInforme de Syzbot:\n\nERROR: fuga de memoria\nobjeto sin referencia 0x ffff8881172f1a00 (tama\u00f1o 512):\n  comm \u2019kworker/0:2\u2019, pid 139, jiffies 4294994873 (antig\u00fcedad 10.960s)\n  volcado hexadecimal (primeros 32 bytes):\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\nrastreo de pila:\n    [[ffffffff844af012]] dvb_usb_adapter_init drivers/media/usb/dvb-usb/dvb-usb-init.c:75 [inline]\n    [[ffffffff844af012]] dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:184 [inline]\n    [[ffffffff844af012]] dvb_usb_device_init.cold+0x4e5/0x79e drivers/media/usb/dvb-usb/dvb-usb-init.c:308\n    [[ffffffff830db21d]] dib0700_probe+0x8d/0x1b0 drivers/media/usb/dvb-usb/dib0700_core.c:883\n    [[ffffffff82d3fdc7]] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396\n    [[ffffffff8274ab37]] call_driver_probe drivers/base/dd.c:542 [inline]\n    [[ffffffff8274ab37]] really_probe.part.0+0xe7/0x310 drivers/base/dd.c:621\n    [[ffffffff8274ae6c]] really_probe drivers/base/dd.c:583 [inline]\n    [[ffffffff8274ae6c]] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:752\n    [[ffffffff8274af6a]] driver_probe_device+0x2a/0x120 drivers/base/dd.c:782\n    [[ffffffff8274b786]] __device_attach_driver+0xf6/0x140 drivers/base/dd.c:899\n    [[ffffffff82747c87]] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427\n    [[ffffffff8274b352]] __device_attach+0x122/0x260 drivers/base/dd.c:970\n    [[ffffffff827498f6]] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487\n    [[ffffffff82745cdb]] device_add+0x5fb/0xdf0 drivers/base/core.c:3405\n    [[ffffffff82d3d202]] usb_set_configuration+0x8f2/0xb80 drivers/usb/core/message.c:2170\n    [[ffffffff82d4dbfc]] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238\n    [[ffffffff82d3f49c]] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293\n    [[ffffffff8274ab37]] call_driver_probe drivers/base/dd.c:542 [inline]\n    [[ffffffff8274ab37]] really_probe.part.0+0xe7/0x310 drivers/base/dd.c:621\n    [[ffffffff8274ae6c]] really_probe drivers/base/dd.c:583 [inline]\n    [[ffffffff8274ae6c]] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:752"
          }
        ],
        "id": "CVE-2022-50626",
        "lastModified": "2026-11-11T23:10:00.263",
        "metrics": {},
        "published": "2025-12-08T02:15:48.653",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/17217737c174883dd975885ab4bee4b00f517239"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/21b6b0c9f3796e6917e90db403dae9e74025fc40"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/733bc9e226da2a7f43b10031b8ebfc26d89ec4bd"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7d7ab25ead969594df05fb09ee46ca931d46c5c8"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/93bbf2ed428142aa9a9693721230b28571678bf8"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/94d90fb06b94a90c176270d38861bcba34ce377d"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/d0af6220bb1eed8225a5511de5a3bd386b94afa4"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e5a49140035591d13ff57a7537c65217e5af0d15"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e5d01eb6dc2f699a395d3e731c58a9b3bb4e269f"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-11-07T10:49:18+00:00",
      "cve": "CVE-2022-50626",
      "id": "CVE-2022-50626",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:fixed": "120",
      "product_status:known_affected": "153",
      "product_status:known_not_affected": "15",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: media: dvb-usb: fix memory leak in dvb_usb_adapter_init()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50626.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-10-30T03:25:59Z",
      "cve": "CVE-2022-50626",
      "id": "CVE-2022-50626",
      "initial_release_date": "2025-12-09T00:31:24Z",
      "product_status:known_affected": "354",
      "product_status:known_not_affected": "429",
      "product_status:recommended": "245",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-50626",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2025/cve-2022-50626.json",
      "version": "34"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…