CVE-2022-49731 (GCVE-0-2022-49731)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:24 – Updated: 2025-12-23 13:25
VLAI?
Title
ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()
Summary
In the Linux kernel, the following vulnerability has been resolved: ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo() In an unlikely (and probably wrong?) case that the 'ppi' parameter of ata_host_alloc_pinfo() points to an array starting with a NULL pointer, there's going to be a kernel oops as the 'pi' local variable won't get reassigned from the initial value of NULL. Initialize 'pi' instead to '&ata_dummy_port_info' to fix the possible kernel oops for good... Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.
CWE
  • CWE-476 - NULL Pointer Dereference
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: f5cda257296fbd3683b1f568f2d94d3caaacf74d , < ca4693e6e06e4fd2b240c0fec47aa2498c94848e (git)
Affected: f5cda257296fbd3683b1f568f2d94d3caaacf74d , < 1ac5efee33f29e704226506d429b84575a5d66f8 (git)
Affected: f5cda257296fbd3683b1f568f2d94d3caaacf74d , < a810bd5af06977a847d1f202b22d7defd5c62497 (git)
Affected: f5cda257296fbd3683b1f568f2d94d3caaacf74d , < 253334f84c81bc6a43af489f108c0bddad989eef (git)
Affected: f5cda257296fbd3683b1f568f2d94d3caaacf74d , < 36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a (git)
Affected: f5cda257296fbd3683b1f568f2d94d3caaacf74d , < ff128fbea720bf763fa345680dda5f050bc24a47 (git)
Affected: f5cda257296fbd3683b1f568f2d94d3caaacf74d , < 07cbdb4807d369fbda73062a91b570c4dc5ec429 (git)
Affected: f5cda257296fbd3683b1f568f2d94d3caaacf74d , < bf476fe22aa1851bab4728e0c49025a6a0bea307 (git)
Create a notification for this product.
    Linux Linux Affected: 2.6.22
Unaffected: 0 , < 2.6.22 (semver)
Unaffected: 4.9.320 , ≤ 4.9.* (semver)
Unaffected: 4.14.285 , ≤ 4.14.* (semver)
Unaffected: 4.19.249 , ≤ 4.19.* (semver)
Unaffected: 5.4.200 , ≤ 5.4.* (semver)
Unaffected: 5.10.124 , ≤ 5.10.* (semver)
Unaffected: 5.15.49 , ≤ 5.15.* (semver)
Unaffected: 5.18.6 , ≤ 5.18.* (semver)
Unaffected: 5.19 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2022-49731",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-10-01T19:31:53.132246Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-476",
                "description": "CWE-476 NULL Pointer Dereference",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-10-01T19:36:43.656Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/ata/libata-core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ca4693e6e06e4fd2b240c0fec47aa2498c94848e",
              "status": "affected",
              "version": "f5cda257296fbd3683b1f568f2d94d3caaacf74d",
              "versionType": "git"
            },
            {
              "lessThan": "1ac5efee33f29e704226506d429b84575a5d66f8",
              "status": "affected",
              "version": "f5cda257296fbd3683b1f568f2d94d3caaacf74d",
              "versionType": "git"
            },
            {
              "lessThan": "a810bd5af06977a847d1f202b22d7defd5c62497",
              "status": "affected",
              "version": "f5cda257296fbd3683b1f568f2d94d3caaacf74d",
              "versionType": "git"
            },
            {
              "lessThan": "253334f84c81bc6a43af489f108c0bddad989eef",
              "status": "affected",
              "version": "f5cda257296fbd3683b1f568f2d94d3caaacf74d",
              "versionType": "git"
            },
            {
              "lessThan": "36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a",
              "status": "affected",
              "version": "f5cda257296fbd3683b1f568f2d94d3caaacf74d",
              "versionType": "git"
            },
            {
              "lessThan": "ff128fbea720bf763fa345680dda5f050bc24a47",
              "status": "affected",
              "version": "f5cda257296fbd3683b1f568f2d94d3caaacf74d",
              "versionType": "git"
            },
            {
              "lessThan": "07cbdb4807d369fbda73062a91b570c4dc5ec429",
              "status": "affected",
              "version": "f5cda257296fbd3683b1f568f2d94d3caaacf74d",
              "versionType": "git"
            },
            {
              "lessThan": "bf476fe22aa1851bab4728e0c49025a6a0bea307",
              "status": "affected",
              "version": "f5cda257296fbd3683b1f568f2d94d3caaacf74d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/ata/libata-core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.22"
            },
            {
              "lessThan": "2.6.22",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.320",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.285",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.249",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.200",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.124",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.49",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.320",
                  "versionStartIncluding": "2.6.22",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.285",
                  "versionStartIncluding": "2.6.22",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.249",
                  "versionStartIncluding": "2.6.22",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.200",
                  "versionStartIncluding": "2.6.22",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.124",
                  "versionStartIncluding": "2.6.22",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.49",
                  "versionStartIncluding": "2.6.22",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.6",
                  "versionStartIncluding": "2.6.22",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "2.6.22",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()\n\nIn an unlikely (and probably wrong?) case that the \u0027ppi\u0027 parameter of\nata_host_alloc_pinfo() points to an array starting with a NULL pointer,\nthere\u0027s going to be a kernel oops as the \u0027pi\u0027 local variable won\u0027t get\nreassigned from the initial value of NULL. Initialize \u0027pi\u0027 instead to\n\u0027\u0026ata_dummy_port_info\u0027 to fix the possible kernel oops for good...\n\nFound by Linux Verification Center (linuxtesting.org) with the SVACE static\nanalysis tool."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-23T13:25:16.233Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ca4693e6e06e4fd2b240c0fec47aa2498c94848e"
        },
        {
          "url": "https://git.kernel.org/stable/c/1ac5efee33f29e704226506d429b84575a5d66f8"
        },
        {
          "url": "https://git.kernel.org/stable/c/a810bd5af06977a847d1f202b22d7defd5c62497"
        },
        {
          "url": "https://git.kernel.org/stable/c/253334f84c81bc6a43af489f108c0bddad989eef"
        },
        {
          "url": "https://git.kernel.org/stable/c/36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a"
        },
        {
          "url": "https://git.kernel.org/stable/c/ff128fbea720bf763fa345680dda5f050bc24a47"
        },
        {
          "url": "https://git.kernel.org/stable/c/07cbdb4807d369fbda73062a91b570c4dc5ec429"
        },
        {
          "url": "https://git.kernel.org/stable/c/bf476fe22aa1851bab4728e0c49025a6a0bea307"
        }
      ],
      "title": "ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49731",
    "datePublished": "2025-02-26T02:24:41.300Z",
    "dateReserved": "2025-02-26T02:21:30.449Z",
    "dateUpdated": "2025-12-23T13:25:16.233Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 5.5, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-49731\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-10-01T19:31:53.132246Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-476\", \"description\": \"CWE-476 NULL Pointer Dereference\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-10-01T16:54:21.321Z\"}}], \"cna\": {\"title\": \"ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"f5cda257296fbd3683b1f568f2d94d3caaacf74d\", \"lessThan\": \"ca4693e6e06e4fd2b240c0fec47aa2498c94848e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f5cda257296fbd3683b1f568f2d94d3caaacf74d\", \"lessThan\": \"1ac5efee33f29e704226506d429b84575a5d66f8\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f5cda257296fbd3683b1f568f2d94d3caaacf74d\", \"lessThan\": \"a810bd5af06977a847d1f202b22d7defd5c62497\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f5cda257296fbd3683b1f568f2d94d3caaacf74d\", \"lessThan\": \"253334f84c81bc6a43af489f108c0bddad989eef\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f5cda257296fbd3683b1f568f2d94d3caaacf74d\", \"lessThan\": \"36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f5cda257296fbd3683b1f568f2d94d3caaacf74d\", \"lessThan\": \"ff128fbea720bf763fa345680dda5f050bc24a47\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f5cda257296fbd3683b1f568f2d94d3caaacf74d\", \"lessThan\": \"07cbdb4807d369fbda73062a91b570c4dc5ec429\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f5cda257296fbd3683b1f568f2d94d3caaacf74d\", \"lessThan\": \"bf476fe22aa1851bab4728e0c49025a6a0bea307\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/ata/libata-core.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"2.6.22\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"2.6.22\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.9.320\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.9.*\"}, {\"status\": \"unaffected\", \"version\": \"4.14.285\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.14.*\"}, {\"status\": \"unaffected\", \"version\": \"4.19.249\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.200\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.124\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.49\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"5.18.6\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.18.*\"}, {\"status\": \"unaffected\", \"version\": \"5.19\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/ata/libata-core.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ca4693e6e06e4fd2b240c0fec47aa2498c94848e\"}, {\"url\": \"https://git.kernel.org/stable/c/1ac5efee33f29e704226506d429b84575a5d66f8\"}, {\"url\": \"https://git.kernel.org/stable/c/a810bd5af06977a847d1f202b22d7defd5c62497\"}, {\"url\": \"https://git.kernel.org/stable/c/253334f84c81bc6a43af489f108c0bddad989eef\"}, {\"url\": \"https://git.kernel.org/stable/c/36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a\"}, {\"url\": \"https://git.kernel.org/stable/c/ff128fbea720bf763fa345680dda5f050bc24a47\"}, {\"url\": \"https://git.kernel.org/stable/c/07cbdb4807d369fbda73062a91b570c4dc5ec429\"}, {\"url\": \"https://git.kernel.org/stable/c/bf476fe22aa1851bab4728e0c49025a6a0bea307\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()\\n\\nIn an unlikely (and probably wrong?) case that the \u0027ppi\u0027 parameter of\\nata_host_alloc_pinfo() points to an array starting with a NULL pointer,\\nthere\u0027s going to be a kernel oops as the \u0027pi\u0027 local variable won\u0027t get\\nreassigned from the initial value of NULL. Initialize \u0027pi\u0027 instead to\\n\u0027\u0026ata_dummy_port_info\u0027 to fix the possible kernel oops for good...\\n\\nFound by Linux Verification Center (linuxtesting.org) with the SVACE static\\nanalysis tool.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.9.320\", \"versionStartIncluding\": \"2.6.22\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.14.285\", \"versionStartIncluding\": \"2.6.22\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.19.249\", \"versionStartIncluding\": \"2.6.22\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.200\", \"versionStartIncluding\": \"2.6.22\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.124\", \"versionStartIncluding\": \"2.6.22\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.49\", \"versionStartIncluding\": \"2.6.22\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.18.6\", \"versionStartIncluding\": \"2.6.22\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.19\", \"versionStartIncluding\": \"2.6.22\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-12-23T13:25:16.233Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-49731\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-12-23T13:25:16.233Z\", \"dateReserved\": \"2025-02-26T02:21:30.449Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-02-26T02:24:41.300Z\", \"assignerShortName\": \"Linux\"}",
      "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…