btrfs: fix NULL pointer dereference in do_abort_log_replay()
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix NULL pointer dereference in do_abort_log_replay() Coverity reported a NULL pointer dereference issue (CID 1666756) in do_abort_log_replay(). When btrfs_alloc_path() fails in replay_one_buffer(), wc->subvol_path is NULL, but btrfs_abort_log_replay() calls do_abort_log_replay() which unconditionally dereferences wc->subvol_path when attempting to print debug information. Fix this by adding a NULL check before dereferencing wc->subvol_path in do_abort_log_replay().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.18.6
- CVEs
- CVE-2026-23043
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 08:49 UTC · Revision 1
Source evidence
btrfs: fix NULL pointer dereference in do_abort_log_replay()
core-osv · Original sourcePublished 4 Feb 2026, 16:00 UTC
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix NULL pointer dereference in do_abort_log_replay() Coverity reported a NULL pointer dereference issue (CID 1666756) in do_abort_log_replay(). When btrfs_alloc_path() fails in replay_one_buffer(), wc->subvol_path is NULL, but btrfs_abort_log_replay() calls do_abort_log_replay() which unconditionally dereferences wc->subvol_path when attempting to print debug information. Fix this by adding a NULL check before dereferencing wc->subvol_path in do_abort_log_replay().
osv:CVE-2026-23043
Kernel
Fixed versions: 6.18.6
Complete source record
{
"id": "1bc253759ee139abfac175e8f4f38ccfc3c6dbc0f955b6f32da6b43281a1267a",
"url": "https://osv.dev/vulnerability/CVE-2026-23043",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "btrfs: fix NULL pointer dereference in do_abort_log_replay()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: btrfs: fix NULL pointer dereference in do_abort_log_replay() Coverity reported a NULL pointer dereference issue (CID 1666756) in do_abort_log_replay(). When btrfs_alloc_path() fails in replay_one_buffer(), wc->subvol_path is NULL, but btrfs_abort_log_replay() calls do_abort_log_replay() which unconditionally dereferences wc->subvol_path when attempting to print debug information. Fix this by adding a NULL check before dereferencing wc->subvol_path in do_abort_log_replay().",
"evidence": "osv:CVE-2026-23043",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.18.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-23043",
"aliases": [
"CVE-2026-23043"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "2753e49176240f21e4bb10e03514f99e732704bb"
},
{
"fixed": "6d1b61b8e1e44888c643d89225ab819b10649b2e"
},
{
"fixed": "530e3d4af566ca44807d79359b90794dea24c4f3"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23043.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.18.0"
},
{
"fixed": "6.18.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23043.json"
}
}
],
"modified": "2026-10-28T02:30:27.263003007Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/530e3d4af566ca44807d79359b90794dea24c4f3",
"https://git.kernel.org/stable/c/6d1b61b8e1e44888c643d89225ab819b10649b2e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23043.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-23043",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23043.json"
}
},
"related_cves": [
{
"value": "CVE-2026-23043",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 493972,
"published_at": "2026-02-04T16:00:26.353+00:00"
}