CVE-2022-48663 (GCVE-0-2022-48663)

Vulnerability from cvelistv5 – Published: 2024-04-28 13:01 – Updated: 2025-05-04 08:20
VLAI?
Title
gpio: mockup: fix NULL pointer dereference when removing debugfs
Summary
In the Linux kernel, the following vulnerability has been resolved: gpio: mockup: fix NULL pointer dereference when removing debugfs We now remove the device's debugfs entries when unbinding the driver. This now causes a NULL-pointer dereference on module exit because the platform devices are unregistered *after* the global debugfs directory has been recursively removed. Fix it by unregistering the devices first.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 3815e66c2183f3430490e450ba16779cf5214ec6 , < bdea98b98f844bd8a983ca880893e509a8b4162f (git)
Affected: 3a10e8edee2b45a654f1f7b05f747129ec84cf9d , < 18352095a0d581f6aeb1e9fc9d68cc0152cd64b4 (git)
Affected: bc55c1677edbe86a1c66a35e800df47dff16ad61 , < af0bfabf06c74c260265c30ba81a34e7dec0e881 (git)
Affected: 303e6da99429510b1e4edf833afe90ac8542e747 , < b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68 (git)
Create a notification for this product.
    Linux Linux Affected: 5.10.144 , < 5.10.146 (semver)
Affected: 5.15.69 , < 5.15.71 (semver)
Affected: 5.19.10 , < 5.19.12 (semver)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-03T15:17:55.854Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-48663",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T15:45:58.565669Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:33:54.124Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpio/gpio-mockup.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bdea98b98f844bd8a983ca880893e509a8b4162f",
              "status": "affected",
              "version": "3815e66c2183f3430490e450ba16779cf5214ec6",
              "versionType": "git"
            },
            {
              "lessThan": "18352095a0d581f6aeb1e9fc9d68cc0152cd64b4",
              "status": "affected",
              "version": "3a10e8edee2b45a654f1f7b05f747129ec84cf9d",
              "versionType": "git"
            },
            {
              "lessThan": "af0bfabf06c74c260265c30ba81a34e7dec0e881",
              "status": "affected",
              "version": "bc55c1677edbe86a1c66a35e800df47dff16ad61",
              "versionType": "git"
            },
            {
              "lessThan": "b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68",
              "status": "affected",
              "version": "303e6da99429510b1e4edf833afe90ac8542e747",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpio/gpio-mockup.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5.10.146",
              "status": "affected",
              "version": "5.10.144",
              "versionType": "semver"
            },
            {
              "lessThan": "5.15.71",
              "status": "affected",
              "version": "5.15.69",
              "versionType": "semver"
            },
            {
              "lessThan": "5.19.12",
              "status": "affected",
              "version": "5.19.10",
              "versionType": "semver"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.146",
                  "versionStartIncluding": "5.10.144",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.71",
                  "versionStartIncluding": "5.15.69",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.12",
                  "versionStartIncluding": "5.19.10",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: mockup: fix NULL pointer dereference when removing debugfs\n\nWe now remove the device\u0027s debugfs entries when unbinding the driver.\nThis now causes a NULL-pointer dereference on module exit because the\nplatform devices are unregistered *after* the global debugfs directory\nhas been recursively removed. Fix it by unregistering the devices first."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:20:49.260Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f"
        },
        {
          "url": "https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4"
        },
        {
          "url": "https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881"
        },
        {
          "url": "https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68"
        }
      ],
      "title": "gpio: mockup: fix NULL pointer dereference when removing debugfs",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-48663",
    "datePublished": "2024-04-28T13:01:36.158Z",
    "dateReserved": "2024-02-25T13:44:28.320Z",
    "dateUpdated": "2025-05-04T08:20:49.260Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T15:17:55.854Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-48663\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T15:45:58.565669Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:19.515Z\"}}], \"cna\": {\"title\": \"gpio: mockup: fix NULL pointer dereference when removing debugfs\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"3815e66c2183f3430490e450ba16779cf5214ec6\", \"lessThan\": \"bdea98b98f844bd8a983ca880893e509a8b4162f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"3a10e8edee2b45a654f1f7b05f747129ec84cf9d\", \"lessThan\": \"18352095a0d581f6aeb1e9fc9d68cc0152cd64b4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"bc55c1677edbe86a1c66a35e800df47dff16ad61\", \"lessThan\": \"af0bfabf06c74c260265c30ba81a34e7dec0e881\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"303e6da99429510b1e4edf833afe90ac8542e747\", \"lessThan\": \"b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/gpio/gpio-mockup.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.10.144\", \"lessThan\": \"5.10.146\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.15.69\", \"lessThan\": \"5.15.71\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.19.10\", \"lessThan\": \"5.19.12\", \"versionType\": \"semver\"}], \"programFiles\": [\"drivers/gpio/gpio-mockup.c\"], \"defaultStatus\": \"unaffected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f\"}, {\"url\": \"https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4\"}, {\"url\": \"https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881\"}, {\"url\": \"https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ngpio: mockup: fix NULL pointer dereference when removing debugfs\\n\\nWe now remove the device\u0027s debugfs entries when unbinding the driver.\\nThis now causes a NULL-pointer dereference on module exit because the\\nplatform devices are unregistered *after* the global debugfs directory\\nhas been recursively removed. Fix it by unregistering the devices first.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.146\", \"versionStartIncluding\": \"5.10.144\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.71\", \"versionStartIncluding\": \"5.15.69\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.19.12\", \"versionStartIncluding\": \"5.19.10\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T08:20:49.260Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-48663\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T08:20:49.260Z\", \"dateReserved\": \"2024-02-25T13:44:28.320Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-04-28T13:01:36.158Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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…

Detection rules are retrieved from Rulezet.

Loading…

Loading…