{"id":"CVE-2026-74754","summary":"scsi: core: pair EH runtime PM get and put","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: core: pair EH runtime PM get and put\n\nshost-\u003eeh_noresume is currently consulted twice in one error handling\niteration: once before scsi_autopm_get_host() and once again before\nscsi_autopm_put_host().\n\nThat is racy when a PM-triggered error path flips shost-\u003eeh_noresume\nwhile the SCSI EH thread is still running.\n\nThe problem flow looks like this:\nPM path\n  ufshcd_set_dev_pwr_mode()\n    shost-\u003eeh_noresume = 1\n    ufshcd_execute_start_stop  \u003c-- trigger EH\n    ...\n    shost-\u003eeh_noresume = 0\n\nEH path\n  scsi_error_handler()\n    if (!shost-\u003eeh_noresume)\n      scsi_autopm_get_host()  \u003c-- skipped\n    ...\n    if (!shost-\u003eeh_noresume)\n       scsi_autopm_put_host()  \u003c-- executed later\n\nIn that case one EH iteration can skip autoresume on entry and still\ndrop a runtime PM reference on exit. That leaves an unmatched runtime PM\nput and can trigger a runtime PM usage count underflow.\n\nFix this by making eh_noresume a regular bool so it can be accessed with\nREAD_ONCE() and WRITE_ONCE(). Snapshot it once per EH iteration and use\nthat snapshot for both runtime PM get and put decisions.","modified":"2026-11-01T02:33:26.692098084Z","published":"2026-08-26T14:37:00.766Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74754.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0038a2a75a15d163f428c93103c6d02d4d231a7a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1ec5f6aa38ea990af37c49af7a4bb3db00da7f9d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/872f486259ae0bc6b73ca4735a15d013241f73e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9aca00c74730f4bc12d0717d33db637a16ccdfea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e83eed1bea142c8fe852fd53156845b88252ecd8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fdc93f4a801077efbf1b87570ade8d8f325de62f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74754.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74754"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ae0751ffc77e7f21629970fdab5528c573e637f8"},{"fixed":"9aca00c74730f4bc12d0717d33db637a16ccdfea"},{"fixed":"1ec5f6aa38ea990af37c49af7a4bb3db00da7f9d"},{"fixed":"0038a2a75a15d163f428c93103c6d02d4d231a7a"},{"fixed":"fdc93f4a801077efbf1b87570ade8d8f325de62f"},{"fixed":"e83eed1bea142c8fe852fd53156845b88252ecd8"},{"fixed":"872f486259ae0bc6b73ca4735a15d013241f73e9"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-74754.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.3.0"},{"fixed":"6.1.191"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.114"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.57"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-74754.json"}}],"schema_version":"1.9.2"}