cve-2022-48977
Vulnerability from cvelistv5
Published
2024-10-21 20:05
Modified
2024-12-19 08:11
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: can: af_can: fix NULL pointer dereference in can_rcv_filter Analogue to commit 8aa59e355949 ("can: af_can: fix NULL pointer dereference in can_rx_register()") we need to check for a missing initialization of ml_priv in the receive path of CAN frames. Since commit 4e096a18867a ("net: introduce CAN specific pointer in the struct net_device") the check for dev->type to be ARPHRD_CAN is not sufficient anymore since bonding or tun netdevices claim to be CAN devices but do not initialize ml_priv accordingly.
Impacted products
Vendor Product Version
Linux Linux Version: 4ac1feff6ea6495cbfd336f4438a6c6d140544a6
Version: 1a5751d58b14195f763b8c1d9ef33fb8a93e95e7
Version: 4e096a18867a5a989b510f6999d9c6b6622e8f7b
Version: 4e096a18867a5a989b510f6999d9c6b6622e8f7b
Version: 4e096a18867a5a989b510f6999d9c6b6622e8f7b
Create a notification for this product.
   Linux Linux Version: 5.12
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-48977",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-22T13:18:20.904853Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-22T13:18:44.387Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/can/af_can.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3982652957e8d79ac32efcb725450580650a8644",
              "status": "affected",
              "version": "4ac1feff6ea6495cbfd336f4438a6c6d140544a6",
              "versionType": "git"
            },
            {
              "lessThan": "c42221efb1159d6a3c89e96685ee38acdce86b6f",
              "status": "affected",
              "version": "1a5751d58b14195f763b8c1d9ef33fb8a93e95e7",
              "versionType": "git"
            },
            {
              "lessThan": "c142cba37de29f740a3852f01f59876af8ae462a",
              "status": "affected",
              "version": "4e096a18867a5a989b510f6999d9c6b6622e8f7b",
              "versionType": "git"
            },
            {
              "lessThan": "fcc63f2f7ee3038d53216edd0d8291e57c752557",
              "status": "affected",
              "version": "4e096a18867a5a989b510f6999d9c6b6622e8f7b",
              "versionType": "git"
            },
            {
              "lessThan": "0acc442309a0a1b01bcdaa135e56e6398a49439c",
              "status": "affected",
              "version": "4e096a18867a5a989b510f6999d9c6b6622e8f7b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/can/af_can.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.12"
            },
            {
              "lessThan": "5.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.227",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.159",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.83",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncan: af_can: fix NULL pointer dereference in can_rcv_filter\n\nAnalogue to commit 8aa59e355949 (\"can: af_can: fix NULL pointer\ndereference in can_rx_register()\") we need to check for a missing\ninitialization of ml_priv in the receive path of CAN frames.\n\nSince commit 4e096a18867a (\"net: introduce CAN specific pointer in the\nstruct net_device\") the check for dev-\u003etype to be ARPHRD_CAN is not\nsufficient anymore since bonding or tun netdevices claim to be CAN\ndevices but do not initialize ml_priv accordingly."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-12-19T08:11:46.166Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3982652957e8d79ac32efcb725450580650a8644"
        },
        {
          "url": "https://git.kernel.org/stable/c/c42221efb1159d6a3c89e96685ee38acdce86b6f"
        },
        {
          "url": "https://git.kernel.org/stable/c/c142cba37de29f740a3852f01f59876af8ae462a"
        },
        {
          "url": "https://git.kernel.org/stable/c/fcc63f2f7ee3038d53216edd0d8291e57c752557"
        },
        {
          "url": "https://git.kernel.org/stable/c/0acc442309a0a1b01bcdaa135e56e6398a49439c"
        }
      ],
      "title": "can: af_can: fix NULL pointer dereference in can_rcv_filter",
      "x_generator": {
        "engine": "bippy-5f407fcff5a0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-48977",
    "datePublished": "2024-10-21T20:05:56.389Z",
    "dateReserved": "2024-08-22T01:27:53.632Z",
    "dateUpdated": "2024-12-19T08:11:46.166Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-48977\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-10-21T20:15:09.763\",\"lastModified\":\"2024-10-25T18:47:07.357\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncan: af_can: fix NULL pointer dereference in can_rcv_filter\\n\\nAnalogue to commit 8aa59e355949 (\\\"can: af_can: fix NULL pointer\\ndereference in can_rx_register()\\\") we need to check for a missing\\ninitialization of ml_priv in the receive path of CAN frames.\\n\\nSince commit 4e096a18867a (\\\"net: introduce CAN specific pointer in the\\nstruct net_device\\\") the check for dev-\u003etype to be ARPHRD_CAN is not\\nsufficient anymore since bonding or tun netdevices claim to be CAN\\ndevices but do not initialize ml_priv accordingly.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: af_can: fix NULL pointer dereference in can_rcv_filter De manera an\u00e1loga a el commit 8aa59e355949 (\\\"can: af_can: fix NULL pointer dereference in can_rx_register()\\\"), debemos comprobar si falta una inicializaci\u00f3n de ml_priv en la ruta de recepci\u00f3n de los marcos CAN. Desde el commit 4e096a18867a (\\\"net: introduzca el puntero espec\u00edfico de CAN en la estructura net_device\\\"), la verificaci\u00f3n de que dev-\u0026gt;type sea ARPHRD_CAN ya no es suficiente ya que los dispositivos de red vinculados o sintonizados afirman ser dispositivos CAN pero no inicializan ml_priv en consecuencia.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-476\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.4.110\",\"versionEndExcluding\":\"5.4.227\",\"matchCriteriaId\":\"F5FB1A61-365F-4CA9-9623-69C6889A6E49\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.10.28\",\"versionEndExcluding\":\"5.10.159\",\"matchCriteriaId\":\"B4EFBE85-872C-4731-AD53-6DB3F3132B63\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11.12\",\"versionEndExcluding\":\"5.15.83\",\"matchCriteriaId\":\"34D9B7A6-0CC8-4839-B206-AF0CEAC1CAFE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"6.0.13\",\"matchCriteriaId\":\"389392A7-81C4-4C26-884B-8C7CF0F53DA4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"E7E331DA-1FB0-4DEC-91AC-7DA69D461C11\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"17F0B248-42CF-4AE6-A469-BB1BAE7F4705\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"E2422816-0C14-4B5E-A1E6-A9D776E5C49B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.1:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"1C6E00FE-5FB9-4D20-A1A1-5A32128F9B76\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.1:rc5:*:*:*:*:*:*\",\"matchCriteriaId\":\"35B26BE4-43A6-4A36-A7F6-5B3F572D9186\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.1:rc6:*:*:*:*:*:*\",\"matchCriteriaId\":\"3FFFB0B3-930D-408A-91E2-BAE0C2715D80\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.1:rc7:*:*:*:*:*:*\",\"matchCriteriaId\":\"8535320E-A0DB-4277-800E-D0CE5BBA59E8\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.1:rc8:*:*:*:*:*:*\",\"matchCriteriaId\":\"21718AA4-4056-40F2-968E-BDAA465A7872\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0acc442309a0a1b01bcdaa135e56e6398a49439c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/3982652957e8d79ac32efcb725450580650a8644\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c142cba37de29f740a3852f01f59876af8ae462a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c42221efb1159d6a3c89e96685ee38acdce86b6f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/fcc63f2f7ee3038d53216edd0d8291e57c752557\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-48977\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:18:20.904853Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:18:24.154Z\"}}], \"cna\": {\"title\": \"can: af_can: fix NULL pointer dereference in can_rcv_filter\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4ac1feff6ea6495cbfd336f4438a6c6d140544a6\", \"lessThan\": \"3982652957e8d79ac32efcb725450580650a8644\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1a5751d58b14195f763b8c1d9ef33fb8a93e95e7\", \"lessThan\": \"c42221efb1159d6a3c89e96685ee38acdce86b6f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"4e096a18867a5a989b510f6999d9c6b6622e8f7b\", \"lessThan\": \"c142cba37de29f740a3852f01f59876af8ae462a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"4e096a18867a5a989b510f6999d9c6b6622e8f7b\", \"lessThan\": \"fcc63f2f7ee3038d53216edd0d8291e57c752557\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"4e096a18867a5a989b510f6999d9c6b6622e8f7b\", \"lessThan\": \"0acc442309a0a1b01bcdaa135e56e6398a49439c\", \"versionType\": \"git\"}], \"programFiles\": [\"net/can/af_can.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.12\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.12\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.227\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.159\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.83\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.0.13\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.0.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"net/can/af_can.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/3982652957e8d79ac32efcb725450580650a8644\"}, {\"url\": \"https://git.kernel.org/stable/c/c42221efb1159d6a3c89e96685ee38acdce86b6f\"}, {\"url\": \"https://git.kernel.org/stable/c/c142cba37de29f740a3852f01f59876af8ae462a\"}, {\"url\": \"https://git.kernel.org/stable/c/fcc63f2f7ee3038d53216edd0d8291e57c752557\"}, {\"url\": \"https://git.kernel.org/stable/c/0acc442309a0a1b01bcdaa135e56e6398a49439c\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncan: af_can: fix NULL pointer dereference in can_rcv_filter\\n\\nAnalogue to commit 8aa59e355949 (\\\"can: af_can: fix NULL pointer\\ndereference in can_rx_register()\\\") we need to check for a missing\\ninitialization of ml_priv in the receive path of CAN frames.\\n\\nSince commit 4e096a18867a (\\\"net: introduce CAN specific pointer in the\\nstruct net_device\\\") the check for dev-\u003etype to be ARPHRD_CAN is not\\nsufficient anymore since bonding or tun netdevices claim to be CAN\\ndevices but do not initialize ml_priv accordingly.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T08:11:46.166Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-48977\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T08:11:46.166Z\", \"dateReserved\": \"2024-08-22T01:27:53.632Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T20:05:56.389Z\", \"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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.