CVE-2023-54220 (GCVE-0-2023-54220)
Vulnerability from cvelistv5
Published
2025-12-30 12:11
Modified
2026-08-05 09:18
Summary
In the Linux kernel, the following vulnerability has been resolved: serial: 8250: Fix oops for port->pm on uart_change_pm() Unloading a hardware specific 8250 driver can produce error "Unable to handle kernel paging request at virtual address" about ten seconds after unloading the driver. This happens on uart_hangup() calling uart_change_pm(). Turns out commit 04e82793f068 ("serial: 8250: Reinit port->pm on port specific driver unbind") was only a partial fix. If the hardware specific driver has initialized port->pm function, we need to clear port->pm too. Just reinitializing port->ops does not do this. Otherwise serial8250_pm() will call port->pm() instead of serial8250_do_pm().
Impacted products
Vendor Product Version
Linux Linux Version: 490bf37eaabb0a857ed1ae8e75d8854e41662f1c
Version: c9e080c3005fd183c56ff8f4d75edb5da0765d2c
Version: d5cd2928d31042a7c0a01464f9a8d95be736421d
Version: 2c86a1305c1406f45ea780d06953c484ea1d9e6e
Version: 1ba5594739d858e524ff0f398ee1ebfe0a8b9d41
Version: af4d6dbb1a92ea424ad1ba1d0c88c7fa2345d872
Version: 04e82793f068d2f0ffe62fcea03d007a8cdc16a7
Version: 04e82793f068d2f0ffe62fcea03d007a8cdc16a7
Version: 8e596aed5f2f98cf3e6e98d6fe1d689f4a319308
Version: 4.14.316   
Version: 4.19.284   
Version: 5.4.244   
Version: 5.10.181   
Version: 5.15.113   
Version: 6.1.30   
Version: 6.3.4   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/tty/serial/8250/8250_port.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "66f3e55960698c874b0598277913b478ecd29573",
              "status": "affected",
              "version": "490bf37eaabb0a857ed1ae8e75d8854e41662f1c",
              "versionType": "git"
            },
            {
              "lessThan": "720a297b334e85d34099e83d1f375b92c3efedd6",
              "status": "affected",
              "version": "c9e080c3005fd183c56ff8f4d75edb5da0765d2c",
              "versionType": "git"
            },
            {
              "lessThan": "b653289ca6460a6552c8590b75dfa84a0140a46b",
              "status": "affected",
              "version": "d5cd2928d31042a7c0a01464f9a8d95be736421d",
              "versionType": "git"
            },
            {
              "lessThan": "bd70d0b28010d560a8be96b44fea86fe2ba016ae",
              "status": "affected",
              "version": "2c86a1305c1406f45ea780d06953c484ea1d9e6e",
              "versionType": "git"
            },
            {
              "lessThan": "18e27df4f2b4e257c317ba8076f31a888f6cc64b",
              "status": "affected",
              "version": "1ba5594739d858e524ff0f398ee1ebfe0a8b9d41",
              "versionType": "git"
            },
            {
              "lessThan": "0c05493341d6f2097f75f0a5dbb7b53a9e8c5f6c",
              "status": "affected",
              "version": "af4d6dbb1a92ea424ad1ba1d0c88c7fa2345d872",
              "versionType": "git"
            },
            {
              "lessThan": "375806616f8c772c33d40e112530887b37c1a816",
              "status": "affected",
              "version": "04e82793f068d2f0ffe62fcea03d007a8cdc16a7",
              "versionType": "git"
            },
            {
              "lessThan": "dfe2aeb226fd5e19b0ee795f4f6ed8bc494c1534",
              "status": "affected",
              "version": "04e82793f068d2f0ffe62fcea03d007a8cdc16a7",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "8e596aed5f2f98cf3e6e98d6fe1d689f4a319308",
              "versionType": "git"
            },
            {
              "lessThan": "4.14.324",
              "status": "affected",
              "version": "4.14.316",
              "versionType": "semver"
            },
            {
              "lessThan": "4.19.293",
              "status": "affected",
              "version": "4.19.284",
              "versionType": "semver"
            },
            {
              "lessThan": "5.4.255",
              "status": "affected",
              "version": "5.4.244",
              "versionType": "semver"
            },
            {
              "lessThan": "5.10.192",
              "status": "affected",
              "version": "5.10.181",
              "versionType": "semver"
            },
            {
              "lessThan": "5.15.128",
              "status": "affected",
              "version": "5.15.113",
              "versionType": "semver"
            },
            {
              "lessThan": "6.1.47",
              "status": "affected",
              "version": "6.1.30",
              "versionType": "semver"
            },
            {
              "lessThan": "6.4",
              "status": "affected",
              "version": "6.3.4",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/tty/serial/8250/8250_port.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.4"
            },
            {
              "lessThan": "6.4",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.324",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.293",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.255",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.192",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.128",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.47",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.4.*",
              "status": "unaffected",
              "version": "6.4.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.5",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.324",
                  "versionStartIncluding": "4.14.316",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.293",
                  "versionStartIncluding": "4.19.284",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.255",
                  "versionStartIncluding": "5.4.244",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.192",
                  "versionStartIncluding": "5.10.181",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.128",
                  "versionStartIncluding": "5.15.113",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.47",
                  "versionStartIncluding": "6.1.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.12",
                  "versionStartIncluding": "6.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5",
                  "versionStartIncluding": "6.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.3.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250: Fix oops for port-\u003epm on uart_change_pm()\n\nUnloading a hardware specific 8250 driver can produce error \"Unable to\nhandle kernel paging request at virtual address\" about ten seconds after\nunloading the driver. This happens on uart_hangup() calling\nuart_change_pm().\n\nTurns out commit 04e82793f068 (\"serial: 8250: Reinit port-\u003epm on port\nspecific driver unbind\") was only a partial fix. If the hardware specific\ndriver has initialized port-\u003epm function, we need to clear port-\u003epm too.\nJust reinitializing port-\u003eops does not do this. Otherwise serial8250_pm()\nwill call port-\u003epm() instead of serial8250_do_pm()."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The stale `port-\u003epm` call is reached through local tty operations (open/close/hangup on /dev/ttyS*) and the state is created via local sysfs unbind or module unload; there is no network- or physically-mediated path to the code.\nAC:L - There is no race and no memory-layout dependency \u2014 once the hardware-specific 8250 driver is unbound or unloaded, `port-\u003epm` is unconditionally stale and every subsequent `uart_change_pm()` transition dereferences it deterministically (the reporter saw it reliably ~10s later on the automatic hangup).\nPR:L - The dangling call is executed by unprivileged tty operations \u2014 an ordinary user with serial-device access (commonly granted via the dialout group on the embedded/industrial systems running 8250_omap/mtk/pxa/exar) opening or closing the port, or simply exiting a process holding it as controlling tty, is enough.\nUI:N - No victim action is needed; the kernel itself invokes `uart_hangup()` \u2192 `uart_change_pm()` on process exit and `uart_shutdown()` on close, so the stale pointer fires automatically.\nS:U - The stale function-pointer call and the resulting corruption stay within the kernel\u0027s own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - This is a dangling function pointer into freed module text plus MMIO access through a released ioremap mapping \u2014 the same class as a use-after-free, which allows an attacker who reclaims the freed region to obtain arbitrary kernel-memory read.\nI:H - An indirect call through a freed code pointer is a direct control-flow hijack primitive, and `omap_8250_pm()`/`exar_pm()` additionally perform `serial_out()` writes through a dangling ioremap cookie, giving an uncontrolled kernel write.\nA:H - The commit documents the concrete result \u2014 \"Unable to handle kernel paging request at virtual address\" / \"Internal error: imprecise external abort\" \u2014 a kernel oops that kills the affected task and can panic the system."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:18:10.284Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/66f3e55960698c874b0598277913b478ecd29573"
        },
        {
          "url": "https://git.kernel.org/stable/c/720a297b334e85d34099e83d1f375b92c3efedd6"
        },
        {
          "url": "https://git.kernel.org/stable/c/b653289ca6460a6552c8590b75dfa84a0140a46b"
        },
        {
          "url": "https://git.kernel.org/stable/c/bd70d0b28010d560a8be96b44fea86fe2ba016ae"
        },
        {
          "url": "https://git.kernel.org/stable/c/18e27df4f2b4e257c317ba8076f31a888f6cc64b"
        },
        {
          "url": "https://git.kernel.org/stable/c/0c05493341d6f2097f75f0a5dbb7b53a9e8c5f6c"
        },
        {
          "url": "https://git.kernel.org/stable/c/375806616f8c772c33d40e112530887b37c1a816"
        },
        {
          "url": "https://git.kernel.org/stable/c/dfe2aeb226fd5e19b0ee795f4f6ed8bc494c1534"
        }
      ],
      "title": "serial: 8250: Fix oops for port-\u003epm on uart_change_pm()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54220",
    "datePublished": "2025-12-30T12:11:15.385Z",
    "dateReserved": "2025-12-30T12:06:44.501Z",
    "dateUpdated": "2026-08-05T09:18:10.284Z",
    "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 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…