CVE-2025-68220 (GCVE-0-2025-68220)
Vulnerability from cvelistv5
Published
2025-12-16 13:57
Modified
2025-12-16 13:57
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: ti: netcp: Standardize knav_dma_open_channel to return NULL on error Make knav_dma_open_channel consistently return NULL on error instead of ERR_PTR. Currently the header include/linux/soc/ti/knav_dma.h returns NULL when the driver is disabled, but the driver implementation does not even return NULL or ERR_PTR on failure, causing inconsistency in the users. This results in a crash in netcp_free_navigator_resources as followed (trimmed): Unhandled fault: alignment exception (0x221) at 0xfffffff2 [fffffff2] *pgd=80000800207003, *pmd=82ffda003, *pte=00000000 Internal error: : 221 [#1] SMP ARM Modules linked in: CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-rc7 #1 NONE Hardware name: Keystone PC is at knav_dma_close_channel+0x30/0x19c LR is at netcp_free_navigator_resources+0x2c/0x28c [... TRIM...] Call trace: knav_dma_close_channel from netcp_free_navigator_resources+0x2c/0x28c netcp_free_navigator_resources from netcp_ndo_open+0x430/0x46c netcp_ndo_open from __dev_open+0x114/0x29c __dev_open from __dev_change_flags+0x190/0x208 __dev_change_flags from netif_change_flags+0x1c/0x58 netif_change_flags from dev_change_flags+0x38/0xa0 dev_change_flags from ip_auto_config+0x2c4/0x11f0 ip_auto_config from do_one_initcall+0x58/0x200 do_one_initcall from kernel_init_freeable+0x1cc/0x238 kernel_init_freeable from kernel_init+0x1c/0x12c kernel_init from ret_from_fork+0x14/0x38 [... TRIM...] Standardize the error handling by making the function return NULL on all error conditions. The API is used in just the netcp_core.c so the impact is limited. Note, this change, in effect reverts commit 5b6cb43b4d62 ("net: ethernet: ti: netcp_core: return error while dma channel open issue"), but provides a less error prone implementation.
Impacted products
Vendor Product Version
Linux Linux Version: 5b6cb43b4d625b04a4049d727a116edbfe5cf0f4
Version: 5b6cb43b4d625b04a4049d727a116edbfe5cf0f4
Version: 5b6cb43b4d625b04a4049d727a116edbfe5cf0f4
Version: 5b6cb43b4d625b04a4049d727a116edbfe5cf0f4
Version: 5b6cb43b4d625b04a4049d727a116edbfe5cf0f4
Version: 5b6cb43b4d625b04a4049d727a116edbfe5cf0f4
Version: 5b6cb43b4d625b04a4049d727a116edbfe5cf0f4
Version: 5b6cb43b4d625b04a4049d727a116edbfe5cf0f4
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/ti/netcp_core.c",
            "drivers/soc/ti/knav_dma.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "af6b10a13fc0aee37df4a8292414cc055c263fa3",
              "status": "affected",
              "version": "5b6cb43b4d625b04a4049d727a116edbfe5cf0f4",
              "versionType": "git"
            },
            {
              "lessThan": "8427218ecbd7f8559c37972e66cb0fa06e82353b",
              "status": "affected",
              "version": "5b6cb43b4d625b04a4049d727a116edbfe5cf0f4",
              "versionType": "git"
            },
            {
              "lessThan": "3afeb909c3e2e0eb19b1e20506196e5f2d9c2259",
              "status": "affected",
              "version": "5b6cb43b4d625b04a4049d727a116edbfe5cf0f4",
              "versionType": "git"
            },
            {
              "lessThan": "2572c358ee434ce4b994472cceeb4043cbff5bc5",
              "status": "affected",
              "version": "5b6cb43b4d625b04a4049d727a116edbfe5cf0f4",
              "versionType": "git"
            },
            {
              "lessThan": "952637c5b9be64539cd0e13ef88db71a1df46373",
              "status": "affected",
              "version": "5b6cb43b4d625b04a4049d727a116edbfe5cf0f4",
              "versionType": "git"
            },
            {
              "lessThan": "fbb53727ca789a8d27052aab4b77ca9e2a0fae2b",
              "status": "affected",
              "version": "5b6cb43b4d625b04a4049d727a116edbfe5cf0f4",
              "versionType": "git"
            },
            {
              "lessThan": "f9608637ecc165d7d6341df105aee44691461fb9",
              "status": "affected",
              "version": "5b6cb43b4d625b04a4049d727a116edbfe5cf0f4",
              "versionType": "git"
            },
            {
              "lessThan": "90a88306eb874fe4bbdd860e6c9787f5bbc588b5",
              "status": "affected",
              "version": "5b6cb43b4d625b04a4049d727a116edbfe5cf0f4",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/ti/netcp_core.c",
            "drivers/soc/ti/knav_dma.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.12"
            },
            {
              "lessThan": "4.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.302",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.247",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.197",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.159",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.118",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.60",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.17.*",
              "status": "unaffected",
              "version": "6.17.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.18",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.302",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.247",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.197",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.159",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.118",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.60",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17.10",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethernet: ti: netcp: Standardize knav_dma_open_channel to return NULL on error\n\nMake knav_dma_open_channel consistently return NULL on error instead\nof ERR_PTR. Currently the header include/linux/soc/ti/knav_dma.h\nreturns NULL when the driver is disabled, but the driver\nimplementation does not even return NULL or ERR_PTR on failure,\ncausing inconsistency in the users. This results in a crash in\nnetcp_free_navigator_resources as followed (trimmed):\n\nUnhandled fault: alignment exception (0x221) at 0xfffffff2\n[fffffff2] *pgd=80000800207003, *pmd=82ffda003, *pte=00000000\nInternal error: : 221 [#1] SMP ARM\nModules linked in:\nCPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-rc7 #1 NONE\nHardware name: Keystone\nPC is at knav_dma_close_channel+0x30/0x19c\nLR is at netcp_free_navigator_resources+0x2c/0x28c\n\n[... TRIM...]\n\nCall trace:\n knav_dma_close_channel from netcp_free_navigator_resources+0x2c/0x28c\n netcp_free_navigator_resources from netcp_ndo_open+0x430/0x46c\n netcp_ndo_open from __dev_open+0x114/0x29c\n __dev_open from __dev_change_flags+0x190/0x208\n __dev_change_flags from netif_change_flags+0x1c/0x58\n netif_change_flags from dev_change_flags+0x38/0xa0\n dev_change_flags from ip_auto_config+0x2c4/0x11f0\n ip_auto_config from do_one_initcall+0x58/0x200\n do_one_initcall from kernel_init_freeable+0x1cc/0x238\n kernel_init_freeable from kernel_init+0x1c/0x12c\n kernel_init from ret_from_fork+0x14/0x38\n[... TRIM...]\n\nStandardize the error handling by making the function return NULL on\nall error conditions. The API is used in just the netcp_core.c so the\nimpact is limited.\n\nNote, this change, in effect reverts commit 5b6cb43b4d62 (\"net:\nethernet: ti: netcp_core: return error while dma channel open issue\"),\nbut provides a less error prone implementation."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-16T13:57:14.142Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/af6b10a13fc0aee37df4a8292414cc055c263fa3"
        },
        {
          "url": "https://git.kernel.org/stable/c/8427218ecbd7f8559c37972e66cb0fa06e82353b"
        },
        {
          "url": "https://git.kernel.org/stable/c/3afeb909c3e2e0eb19b1e20506196e5f2d9c2259"
        },
        {
          "url": "https://git.kernel.org/stable/c/2572c358ee434ce4b994472cceeb4043cbff5bc5"
        },
        {
          "url": "https://git.kernel.org/stable/c/952637c5b9be64539cd0e13ef88db71a1df46373"
        },
        {
          "url": "https://git.kernel.org/stable/c/fbb53727ca789a8d27052aab4b77ca9e2a0fae2b"
        },
        {
          "url": "https://git.kernel.org/stable/c/f9608637ecc165d7d6341df105aee44691461fb9"
        },
        {
          "url": "https://git.kernel.org/stable/c/90a88306eb874fe4bbdd860e6c9787f5bbc588b5"
        }
      ],
      "title": "net: ethernet: ti: netcp: Standardize knav_dma_open_channel to return NULL on error",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-68220",
    "datePublished": "2025-12-16T13:57:14.142Z",
    "dateReserved": "2025-12-16T13:41:40.257Z",
    "dateUpdated": "2025-12-16T13:57:14.142Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-68220\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-16T14:15:55.143\",\"lastModified\":\"2025-12-18T15:08:06.237\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: ethernet: ti: netcp: Standardize knav_dma_open_channel to return NULL on error\\n\\nMake knav_dma_open_channel consistently return NULL on error instead\\nof ERR_PTR. Currently the header include/linux/soc/ti/knav_dma.h\\nreturns NULL when the driver is disabled, but the driver\\nimplementation does not even return NULL or ERR_PTR on failure,\\ncausing inconsistency in the users. This results in a crash in\\nnetcp_free_navigator_resources as followed (trimmed):\\n\\nUnhandled fault: alignment exception (0x221) at 0xfffffff2\\n[fffffff2] *pgd=80000800207003, *pmd=82ffda003, *pte=00000000\\nInternal error: : 221 [#1] SMP ARM\\nModules linked in:\\nCPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-rc7 #1 NONE\\nHardware name: Keystone\\nPC is at knav_dma_close_channel+0x30/0x19c\\nLR is at netcp_free_navigator_resources+0x2c/0x28c\\n\\n[... TRIM...]\\n\\nCall trace:\\n knav_dma_close_channel from netcp_free_navigator_resources+0x2c/0x28c\\n netcp_free_navigator_resources from netcp_ndo_open+0x430/0x46c\\n netcp_ndo_open from __dev_open+0x114/0x29c\\n __dev_open from __dev_change_flags+0x190/0x208\\n __dev_change_flags from netif_change_flags+0x1c/0x58\\n netif_change_flags from dev_change_flags+0x38/0xa0\\n dev_change_flags from ip_auto_config+0x2c4/0x11f0\\n ip_auto_config from do_one_initcall+0x58/0x200\\n do_one_initcall from kernel_init_freeable+0x1cc/0x238\\n kernel_init_freeable from kernel_init+0x1c/0x12c\\n kernel_init from ret_from_fork+0x14/0x38\\n[... TRIM...]\\n\\nStandardize the error handling by making the function return NULL on\\nall error conditions. The API is used in just the netcp_core.c so the\\nimpact is limited.\\n\\nNote, this change, in effect reverts commit 5b6cb43b4d62 (\\\"net:\\nethernet: ti: netcp_core: return error while dma channel open issue\\\"),\\nbut provides a less error prone implementation.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/2572c358ee434ce4b994472cceeb4043cbff5bc5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3afeb909c3e2e0eb19b1e20506196e5f2d9c2259\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8427218ecbd7f8559c37972e66cb0fa06e82353b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/90a88306eb874fe4bbdd860e6c9787f5bbc588b5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/952637c5b9be64539cd0e13ef88db71a1df46373\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/af6b10a13fc0aee37df4a8292414cc055c263fa3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f9608637ecc165d7d6341df105aee44691461fb9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fbb53727ca789a8d27052aab4b77ca9e2a0fae2b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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.


Loading…

Loading…