CVE-2023-54307 (GCVE-0-2023-54307)

Vulnerability from cvelistv5 – Published: 2025-12-30 12:23 – Updated: 2026-05-11 19:59
VLAI
Title
ptp_qoriq: fix memory leak in probe()
Summary
In the Linux kernel, the following vulnerability has been resolved: ptp_qoriq: fix memory leak in probe() Smatch complains that: drivers/ptp/ptp_qoriq.c ptp_qoriq_probe() warn: 'base' from ioremap() not released. Fix this by revising the parameter from 'ptp_qoriq->base' to 'base'. This is only a bug if ptp_qoriq_init() returns on the first -ENODEV error path. For other error paths ptp_qoriq->base and base are the same. And this change makes the code more readable.
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 7067 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < 46c4993a1514eea3bbc7147d0c81c23cc06c6bed (git)
Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < 3907fcb5a439933cf8c10d6dc300bc11eba30de3 (git)
Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < c0de1a26e6595b0e7969c5b35990a77a2d93104f (git)
Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < 43b4331ce0cd88ccba425e0702ba35c1a52daccf (git)
Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < c960785c8168d0e572101ed921b9be3934ed0bc9 (git)
Affected: 7f4399ba405b6201fb318b43091703a34b1489ab , < f33642224e38d7e0d59336e10e7b4e370b1c4506 (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.2
Unaffected: 0 , < 5.2 (semver)
Unaffected: 5.4.240 , ≤ 5.4.* (semver)
Unaffected: 5.10.177 , ≤ 5.10.* (semver)
Unaffected: 5.15.106 , ≤ 5.15.* (semver)
Unaffected: 6.1.23 , ≤ 6.1.* (semver)
Unaffected: 6.2.10 , ≤ 6.2.* (semver)
Unaffected: 6.3 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/ptp/ptp_qoriq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "46c4993a1514eea3bbc7147d0c81c23cc06c6bed",
              "status": "affected",
              "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
              "versionType": "git"
            },
            {
              "lessThan": "3907fcb5a439933cf8c10d6dc300bc11eba30de3",
              "status": "affected",
              "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
              "versionType": "git"
            },
            {
              "lessThan": "c0de1a26e6595b0e7969c5b35990a77a2d93104f",
              "status": "affected",
              "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
              "versionType": "git"
            },
            {
              "lessThan": "43b4331ce0cd88ccba425e0702ba35c1a52daccf",
              "status": "affected",
              "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
              "versionType": "git"
            },
            {
              "lessThan": "c960785c8168d0e572101ed921b9be3934ed0bc9",
              "status": "affected",
              "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
              "versionType": "git"
            },
            {
              "lessThan": "f33642224e38d7e0d59336e10e7b4e370b1c4506",
              "status": "affected",
              "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/ptp/ptp_qoriq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.2"
            },
            {
              "lessThan": "5.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.240",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.177",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.106",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.23",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.240",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.177",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.106",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.23",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.10",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nptp_qoriq: fix memory leak in probe()\n\nSmatch complains that:\ndrivers/ptp/ptp_qoriq.c ptp_qoriq_probe()\nwarn: \u0027base\u0027 from ioremap() not released.\n\nFix this by revising the parameter from \u0027ptp_qoriq-\u003ebase\u0027 to \u0027base\u0027.\nThis is only a bug if ptp_qoriq_init() returns on the\nfirst -ENODEV error path.\nFor other error paths ptp_qoriq-\u003ebase and base are the same.\nAnd this change makes the code more readable."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:59:26.208Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/46c4993a1514eea3bbc7147d0c81c23cc06c6bed"
        },
        {
          "url": "https://git.kernel.org/stable/c/3907fcb5a439933cf8c10d6dc300bc11eba30de3"
        },
        {
          "url": "https://git.kernel.org/stable/c/c0de1a26e6595b0e7969c5b35990a77a2d93104f"
        },
        {
          "url": "https://git.kernel.org/stable/c/43b4331ce0cd88ccba425e0702ba35c1a52daccf"
        },
        {
          "url": "https://git.kernel.org/stable/c/c960785c8168d0e572101ed921b9be3934ed0bc9"
        },
        {
          "url": "https://git.kernel.org/stable/c/f33642224e38d7e0d59336e10e7b4e370b1c4506"
        }
      ],
      "title": "ptp_qoriq: fix memory leak in probe()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54307",
    "datePublished": "2025-12-30T12:23:40.491Z",
    "dateReserved": "2025-12-30T12:06:44.530Z",
    "dateUpdated": "2026-05-11T19:59:26.208Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2023-54307",
      "date": "2026-10-26",
      "epss": "0.00205",
      "percentile": "0.10373"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/ptp/ptp_qoriq.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "46c4993a1514eea3bbc7147d0c81c23cc06c6bed",
                    "status": "affected",
                    "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "3907fcb5a439933cf8c10d6dc300bc11eba30de3",
                    "status": "affected",
                    "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c0de1a26e6595b0e7969c5b35990a77a2d93104f",
                    "status": "affected",
                    "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "43b4331ce0cd88ccba425e0702ba35c1a52daccf",
                    "status": "affected",
                    "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c960785c8168d0e572101ed921b9be3934ed0bc9",
                    "status": "affected",
                    "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "f33642224e38d7e0d59336e10e7b4e370b1c4506",
                    "status": "affected",
                    "version": "7f4399ba405b6201fb318b43091703a34b1489ab",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/ptp/ptp_qoriq.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.2"
                  },
                  {
                    "lessThan": "5.2",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.4.*",
                    "status": "unaffected",
                    "version": "5.4.240",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.177",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.106",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.23",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.2.*",
                    "status": "unaffected",
                    "version": "6.2.10",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.3",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nptp_qoriq: fix memory leak in probe()\n\nSmatch complains that:\ndrivers/ptp/ptp_qoriq.c ptp_qoriq_probe()\nwarn: \u0027base\u0027 from ioremap() not released.\n\nFix this by revising the parameter from \u0027ptp_qoriq-\u003ebase\u0027 to \u0027base\u0027.\nThis is only a bug if ptp_qoriq_init() returns on the\nfirst -ENODEV error path.\nFor other error paths ptp_qoriq-\u003ebase and base are the same.\nAnd this change makes the code more readable."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nptp_qoriq: corrige una fuga de memoria en probe()\n\nSmatch se queja de que:\ndrivers/ptp/ptp_qoriq.c ptp_qoriq_probe()\nadvertencia: \u0027base\u0027 de ioremap() no liberada.\n\nSoluciona esto revisando el par\u00e1metro de \u0027ptp_qoriq-\u0026gt;base\u0027 a \u0027base\u0027.\nEsto es solo un error si ptp_qoriq_init() retorna en la\nprimera ruta de error -ENODEV.\nPara otras rutas de error, ptp_qoriq-\u0026gt;base y base son lo mismo.\nY este cambio hace el c\u00f3digo m\u00e1s legible."
          }
        ],
        "id": "CVE-2023-54307",
        "lastModified": "2026-06-17T06:47:11.807",
        "metrics": {},
        "published": "2025-12-30T13:16:19.867",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/3907fcb5a439933cf8c10d6dc300bc11eba30de3"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/43b4331ce0cd88ccba425e0702ba35c1a52daccf"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/46c4993a1514eea3bbc7147d0c81c23cc06c6bed"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c0de1a26e6595b0e7969c5b35990a77a2d93104f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c960785c8168d0e572101ed921b9be3934ed0bc9"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/f33642224e38d7e0d59336e10e7b4e370b1c4506"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:17:23+00:00",
      "cve": "CVE-2023-54307",
      "id": "CVE-2023-54307",
      "initial_release_date": "2023-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: ptp_qoriq: fix memory leak in probe()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-54307.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.