CVE-2022-49046 (GCVE-0-2022-49046)

Vulnerability from cvelistv5 – Published: 2025-02-26 01:54 – Updated: 2025-11-03 19:27
VLAI?
Title
i2c: dev: check return value when calling dev_set_name()
Summary
In the Linux kernel, the following vulnerability has been resolved: i2c: dev: check return value when calling dev_set_name() If dev_set_name() fails, the dev_name() is null, check the return value of dev_set_name() to avoid the null-ptr-deref.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 , < 2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2 (git)
Affected: 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 , < 2f345bb14ad4744950499ff222e2899209297afa (git)
Affected: 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 , < c74d77a2d07744147d734138acd6ce9dba715e5d (git)
Affected: 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 , < 993eb48fa199b5f476df8204e652eff63dd19361 (git)
Affected: 1c1b4327970c79c1a2d0c3becfc12b9696177c55 (git)
Affected: c0d34399045609eda76882fa6d01fdfaf5b20d38 (git)
Affected: f1f3b4150baf7c3aa6b4e6b81b8ff1909996d507 (git)
Affected: a612c4ece2eb757011ae88a8410b48e523220b8d (git)
Affected: 1bed86cfe5cb4529d036a14980d379aee8539982 (git)
Affected: 8a231148135d2d08a3ef721d438cd468ea4209d2 (git)
Create a notification for this product.
    Linux Linux Affected: 5.7
Unaffected: 0 , < 5.7 (semver)
Unaffected: 5.10.236 , ≤ 5.10.* (semver)
Unaffected: 5.15.35 , ≤ 5.15.* (semver)
Unaffected: 5.17.4 , ≤ 5.17.* (semver)
Unaffected: 5.18 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T19:27:47.333Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/i2c/i2c-dev.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2",
              "status": "affected",
              "version": "1413ef638abae4ab5621901cf4d8ef08a4a48ba6",
              "versionType": "git"
            },
            {
              "lessThan": "2f345bb14ad4744950499ff222e2899209297afa",
              "status": "affected",
              "version": "1413ef638abae4ab5621901cf4d8ef08a4a48ba6",
              "versionType": "git"
            },
            {
              "lessThan": "c74d77a2d07744147d734138acd6ce9dba715e5d",
              "status": "affected",
              "version": "1413ef638abae4ab5621901cf4d8ef08a4a48ba6",
              "versionType": "git"
            },
            {
              "lessThan": "993eb48fa199b5f476df8204e652eff63dd19361",
              "status": "affected",
              "version": "1413ef638abae4ab5621901cf4d8ef08a4a48ba6",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1c1b4327970c79c1a2d0c3becfc12b9696177c55",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "c0d34399045609eda76882fa6d01fdfaf5b20d38",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "f1f3b4150baf7c3aa6b4e6b81b8ff1909996d507",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "a612c4ece2eb757011ae88a8410b48e523220b8d",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1bed86cfe5cb4529d036a14980d379aee8539982",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "8a231148135d2d08a3ef721d438cd468ea4209d2",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/i2c/i2c-dev.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.7"
            },
            {
              "lessThan": "5.7",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.236",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.35",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.18",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.236",
                  "versionStartIncluding": "5.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.35",
                  "versionStartIncluding": "5.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.4",
                  "versionStartIncluding": "5.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18",
                  "versionStartIncluding": "5.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.4.225",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.9.225",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.14.182",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.19.125",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.4.43",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.6.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: dev: check return value when calling dev_set_name()\n\nIf dev_set_name() fails, the dev_name() is null, check the return\nvalue of dev_set_name() to avoid the null-ptr-deref."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T12:44:11.963Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2"
        },
        {
          "url": "https://git.kernel.org/stable/c/2f345bb14ad4744950499ff222e2899209297afa"
        },
        {
          "url": "https://git.kernel.org/stable/c/c74d77a2d07744147d734138acd6ce9dba715e5d"
        },
        {
          "url": "https://git.kernel.org/stable/c/993eb48fa199b5f476df8204e652eff63dd19361"
        }
      ],
      "title": "i2c: dev: check return value when calling dev_set_name()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49046",
    "datePublished": "2025-02-26T01:54:22.837Z",
    "dateReserved": "2025-02-26T01:49:39.242Z",
    "dateUpdated": "2025-11-03T19:27:47.333Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


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…