CVE-2026-23356

Source
https://cve.org/CVERecord?id=CVE-2026-23356
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23356.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-23356
Downstream
Published
2026-03-25T10:27:40.454Z
Modified
2026-04-02T13:12:22.940218Z
Summary
drbd: fix "LOGIC BUG" in drbd_al_begin_io_nonblock()
Details

In the Linux kernel, the following vulnerability has been resolved:

drbd: fix "LOGIC BUG" in drbdalbeginiononblock()

Even though we check that we "should" be able to do lcgetcumulative() while holding the device->allock spinlock, it may still fail, if some other code path decided to do lctry_lock() with bad timing.

If that happened, we logged "LOGIC BUG for enr=...", but still did not return an error.

The rest of the code now assumed that this request has references for the relevant activity log extents.

The implcations are that during an active resync, mutual exclusivity of resync versus application IO is not guaranteed. And a potential crash at this point may not realizs that these extents could have been target of in-flight IO and would need to be resynced just in case.

Also, once the request completes, it will give up activity log references it does not even hold, which will trigger a BUGON(refcnt == 0) in lcput().

Fix:

Do not crash the kernel for a condition that is harmless during normal operation: also catch "e->refcnt == 0", not only "e == NULL" when being noisy about "alcompleteio() called on inactive extent %u\n".

And do not try to be smart and "guess" whether something will work, then be surprised when it does not. Deal with the fact that it may or may not work. If it does not, remember a possible "partially in activity log" state (only possible for requests that cross extent boundaries), and return an error code from drbdalbeginiononblock().

A latter call for the same request will then resume from where we left off.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23356.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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
08a1ddab6df7d3c7b6341774cb1cf4b21b96a214
Fixed
7752569fc78e89794ce28946529850282233f99d
Fixed
e91d8d6565b7819d13dab21d4dbed5b45efba59b
Fixed
eef1390125b660b8b61f9f227a03bb9c5e6d36a5
Fixed
d1ef3aed4df2ef1fe46befd8f2da9a6ec5445508
Fixed
f558e5404a72054b525dced1a0c66aa95a144153
Fixed
ab140365fb62c0bdab22b2f516aff563b2559e3b

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23356.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.10.0
Fixed
6.1.167
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.130
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.77
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.17
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23356.json"