{"api_version":"1","generated_at":"2026-07-23T12:35:44+00:00","cve":"CVE-2026-23355","urls":{"html":"https://cve.report/CVE-2026-23355","api":"https://cve.report/api/cve/CVE-2026-23355.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-23355","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-23355"},"summary":{"title":"ata: libata: cancel pending work after clearing deferred_qc","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nata: libata: cancel pending work after clearing deferred_qc\n\nSyzbot reported a WARN_ON() in ata_scsi_deferred_qc_work(), caused by\nap->ops->qc_defer() returning non-zero before issuing the deferred qc.\n\nata_scsi_schedule_deferred_qc() is called during each command completion.\nThis function will check if there is a deferred QC, and if\nap->ops->qc_defer() returns zero, meaning that it is possible to queue the\ndeferred qc at this time (without being deferred), then it will queue the\nwork which will issue the deferred qc.\n\nOnce the work get to run, which can potentially be a very long time after\nthe work was scheduled, there is a WARN_ON() if ap->ops->qc_defer() returns\nnon-zero.\n\nWhile we hold the ap->lock both when assigning and clearing deferred_qc,\nand the work itself holds the ap->lock, the code currently does not cancel\nthe work after clearing the deferred qc.\n\nThis means that the following scenario can happen:\n1) One or several NCQ commands are queued.\n2) A non-NCQ command is queued, gets stored in ap->deferred_qc.\n3) Last NCQ command gets completed, work is queued to issue the deferred\n   qc.\n4) Timeout or error happens, ap->deferred_qc is cleared. The queued work is\n   currently NOT canceled.\n5) Port is reset.\n6) One or several NCQ commands are queued.\n7) A non-NCQ command is queued, gets stored in ap->deferred_qc.\n8) Work is finally run. Yet at this time, there is still NCQ commands in\n   flight.\n\nThe work in 8) really belongs to the non-NCQ command in 2), not to the\nnon-NCQ command in 7). The reason why the work is executed when it is not\nsupposed to, is because it was never canceled when ap->deferred_qc was\ncleared in 4). Thus, ensure that we always cancel the work after clearing\nap->deferred_qc.\n\nAnother potential fix would have been to let ata_scsi_deferred_qc_work() do\nnothing if ap->ops->qc_defer() returns non-zero. However, canceling the\nwork when clearing ap->deferred_qc seems slightly more logical, as we hold\nthe ap->lock when clearing ap->deferred_qc, so we know that the work cannot\nbe holding the lock. (The function could be waiting for the lock, but that\nis okay since it will do nothing if ap->deferred_qc is not set.)","state":"PUBLISHED","assigner":"Linux","published_at":"2026-03-25 11:16:34","updated_at":"2026-04-24 19:13:44"},"problem_types":["NVD-CWE-noinfo"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"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"}}],"references":[{"url":"https://git.kernel.org/stable/c/aac9b27f7c1f2b2cf7f50a9ca633ecbbcaf22af9","name":"https://git.kernel.org/stable/c/aac9b27f7c1f2b2cf7f50a9ca633ecbbcaf22af9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6c5e8f16b5e8e614e829aaf38619bdd79107bb0a","name":"https://git.kernel.org/stable/c/6c5e8f16b5e8e614e829aaf38619bdd79107bb0a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/58e658763ba2aa9168d8516b98a6314d7461a53e","name":"https://git.kernel.org/stable/c/58e658763ba2aa9168d8516b98a6314d7461a53e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0d12453818c35e1ded84633152c6b05002ae48b9","name":"https://git.kernel.org/stable/c/0d12453818c35e1ded84633152c6b05002ae48b9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-23355","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23355","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ce22aaed011206fed9cbd8c9c2d44718607f31ee 0d12453818c35e1ded84633152c6b05002ae48b9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 888cd7e40adb2ef4af1b4d3b6e2e83ad409ae8c2 6c5e8f16b5e8e614e829aaf38619bdd79107bb0a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5d61a38a60e62750526d94663b69b7ac5c7f07a5 58e658763ba2aa9168d8516b98a6314d7461a53e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0ea84089dbf62a92dc7889c79e6b18fc89260808 aac9b27f7c1f2b2cf7f50a9ca633ecbbcaf22af9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 33abac5b5a5303ba2c66d89e063a806033be07fc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 21e0d7a15a789e99be89231dae25cb6ffc482a7c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18.14 6.18.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.19.4 6.19.7 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2026","cve_id":"23355","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/ata/libata-eh.c","drivers/ata/libata-scsi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"0d12453818c35e1ded84633152c6b05002ae48b9","status":"affected","version":"ce22aaed011206fed9cbd8c9c2d44718607f31ee","versionType":"git"},{"lessThan":"6c5e8f16b5e8e614e829aaf38619bdd79107bb0a","status":"affected","version":"888cd7e40adb2ef4af1b4d3b6e2e83ad409ae8c2","versionType":"git"},{"lessThan":"58e658763ba2aa9168d8516b98a6314d7461a53e","status":"affected","version":"5d61a38a60e62750526d94663b69b7ac5c7f07a5","versionType":"git"},{"lessThan":"aac9b27f7c1f2b2cf7f50a9ca633ecbbcaf22af9","status":"affected","version":"0ea84089dbf62a92dc7889c79e6b18fc89260808","versionType":"git"},{"status":"affected","version":"33abac5b5a5303ba2c66d89e063a806033be07fc","versionType":"git"},{"status":"affected","version":"21e0d7a15a789e99be89231dae25cb6ffc482a7c","versionType":"git"}]},{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/ata/libata-eh.c","drivers/ata/libata-scsi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"6.18.18","status":"affected","version":"6.18.14","versionType":"semver"},{"lessThan":"6.19.7","status":"affected","version":"6.19.4","versionType":"semver"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.18","versionStartIncluding":"6.18.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.19.7","versionStartIncluding":"6.19.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nata: libata: cancel pending work after clearing deferred_qc\n\nSyzbot reported a WARN_ON() in ata_scsi_deferred_qc_work(), caused by\nap->ops->qc_defer() returning non-zero before issuing the deferred qc.\n\nata_scsi_schedule_deferred_qc() is called during each command completion.\nThis function will check if there is a deferred QC, and if\nap->ops->qc_defer() returns zero, meaning that it is possible to queue the\ndeferred qc at this time (without being deferred), then it will queue the\nwork which will issue the deferred qc.\n\nOnce the work get to run, which can potentially be a very long time after\nthe work was scheduled, there is a WARN_ON() if ap->ops->qc_defer() returns\nnon-zero.\n\nWhile we hold the ap->lock both when assigning and clearing deferred_qc,\nand the work itself holds the ap->lock, the code currently does not cancel\nthe work after clearing the deferred qc.\n\nThis means that the following scenario can happen:\n1) One or several NCQ commands are queued.\n2) A non-NCQ command is queued, gets stored in ap->deferred_qc.\n3) Last NCQ command gets completed, work is queued to issue the deferred\n   qc.\n4) Timeout or error happens, ap->deferred_qc is cleared. The queued work is\n   currently NOT canceled.\n5) Port is reset.\n6) One or several NCQ commands are queued.\n7) A non-NCQ command is queued, gets stored in ap->deferred_qc.\n8) Work is finally run. Yet at this time, there is still NCQ commands in\n   flight.\n\nThe work in 8) really belongs to the non-NCQ command in 2), not to the\nnon-NCQ command in 7). The reason why the work is executed when it is not\nsupposed to, is because it was never canceled when ap->deferred_qc was\ncleared in 4). Thus, ensure that we always cancel the work after clearing\nap->deferred_qc.\n\nAnother potential fix would have been to let ata_scsi_deferred_qc_work() do\nnothing if ap->ops->qc_defer() returns non-zero. However, canceling the\nwork when clearing ap->deferred_qc seems slightly more logical, as we hold\nthe ap->lock when clearing ap->deferred_qc, so we know that the work cannot\nbe holding the lock. (The function could be waiting for the lock, but that\nis okay since it will do nothing if ap->deferred_qc is not set.)"}],"providerMetadata":{"dateUpdated":"2026-04-13T06:05:40.171Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/0d12453818c35e1ded84633152c6b05002ae48b9"},{"url":"https://git.kernel.org/stable/c/6c5e8f16b5e8e614e829aaf38619bdd79107bb0a"},{"url":"https://git.kernel.org/stable/c/58e658763ba2aa9168d8516b98a6314d7461a53e"},{"url":"https://git.kernel.org/stable/c/aac9b27f7c1f2b2cf7f50a9ca633ecbbcaf22af9"}],"title":"ata: libata: cancel pending work after clearing deferred_qc","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-23355","datePublished":"2026-03-25T10:27:39.514Z","dateReserved":"2026-01-13T15:37:46.000Z","dateUpdated":"2026-04-13T06:05:40.171Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-03-25 11:16:34","lastModifiedDate":"2026-04-24 19:13:44","problem_types":["NVD-CWE-noinfo"],"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}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.14","versionEndExcluding":"6.18.18","matchCriteriaId":"670AAACD-4EEC-4150-9192-29029F51935B"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19.4","versionEndExcluding":"6.19.7","matchCriteriaId":"EABFC675-2A5E-4569-92F7-1E8942DA0683"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*","matchCriteriaId":"F253B622-8837-4245-BCE5-A7BF8FC76A16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*","matchCriteriaId":"4AE85AD8-4641-4E7C-A2F4-305E2CD9EE64"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"23355","Ordinal":"1","Title":"ata: libata: cancel pending work after clearing deferred_qc","CVE":"CVE-2026-23355","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"23355","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nata: libata: cancel pending work after clearing deferred_qc\n\nSyzbot reported a WARN_ON() in ata_scsi_deferred_qc_work(), caused by\nap->ops->qc_defer() returning non-zero before issuing the deferred qc.\n\nata_scsi_schedule_deferred_qc() is called during each command completion.\nThis function will check if there is a deferred QC, and if\nap->ops->qc_defer() returns zero, meaning that it is possible to queue the\ndeferred qc at this time (without being deferred), then it will queue the\nwork which will issue the deferred qc.\n\nOnce the work get to run, which can potentially be a very long time after\nthe work was scheduled, there is a WARN_ON() if ap->ops->qc_defer() returns\nnon-zero.\n\nWhile we hold the ap->lock both when assigning and clearing deferred_qc,\nand the work itself holds the ap->lock, the code currently does not cancel\nthe work after clearing the deferred qc.\n\nThis means that the following scenario can happen:\n1) One or several NCQ commands are queued.\n2) A non-NCQ command is queued, gets stored in ap->deferred_qc.\n3) Last NCQ command gets completed, work is queued to issue the deferred\n   qc.\n4) Timeout or error happens, ap->deferred_qc is cleared. The queued work is\n   currently NOT canceled.\n5) Port is reset.\n6) One or several NCQ commands are queued.\n7) A non-NCQ command is queued, gets stored in ap->deferred_qc.\n8) Work is finally run. Yet at this time, there is still NCQ commands in\n   flight.\n\nThe work in 8) really belongs to the non-NCQ command in 2), not to the\nnon-NCQ command in 7). The reason why the work is executed when it is not\nsupposed to, is because it was never canceled when ap->deferred_qc was\ncleared in 4). Thus, ensure that we always cancel the work after clearing\nap->deferred_qc.\n\nAnother potential fix would have been to let ata_scsi_deferred_qc_work() do\nnothing if ap->ops->qc_defer() returns non-zero. However, canceling the\nwork when clearing ap->deferred_qc seems slightly more logical, as we hold\nthe ap->lock when clearing ap->deferred_qc, so we know that the work cannot\nbe holding the lock. (The function could be waiting for the lock, but that\nis okay since it will do nothing if ap->deferred_qc is not set.)","Type":"Description","Title":"ata: libata: cancel pending work after clearing deferred_qc"}]}}}