# CVE-2026-23374: blktrace: fix \_\_this\_cpu\_read/write in preemptible context

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-25 · Modified: 2026-11-05
- Aliases: UBUNTU-CVE-2026-23374, DEBIAN-CVE-2026-23374, CGA-233q-v2r6-vx2q, CGA-2488-46cw-w7xw, CGA-27qh-cgvh-m5q3, CGA-29g9-7hg7-gc2p, CGA-2q4q-pf8h-p9qv, CGA-362w-r5jh-qp2q, CGA-38x4-574r-rf39, CGA-3f6r-95r7-cgfm, CGA-3ppv-9h73-75xx, CGA-47m2-82pc-m5fj, CGA-4x64-6h4f-336w, CGA-58qh-q27w-9gj4, CGA-59j7-r463-gxj3, CGA-5f4h-3hvr-g2p4, CGA-5ghm-65hj-xq2f, CGA-5qhj-jcj6-g53q, CGA-5xgh-5mxw-4j5q, CGA-5xj9-mc33-g8vj, CGA-64f3-959c-g8fh, CGA-678j-5qc3-c983, CGA-6c63-f6m6-h3wv, CGA-6pw8-v79h-v4w5, CGA-6x3w-9ggq-q8gc, CGA-72f9-3gpq-p6x6, CGA-735r-7mxh-cx34, CGA-7hh9-2r93-9cfx, CGA-7m7v-hr8x-x586, CGA-7rcr-wp7q-xqqf, CGA-7xf7-5rhg-qc44, CGA-87w2-wmxw-6wvv, CGA-87xj-qqcx-6jqq, CGA-8jqx-xmm9-34f8, CGA-8w47-q7mf-562x, CGA-933g-3xj9-56rr, CGA-9mrc-8jxr-j4cp, CGA-9pv5-r5j3-qq49, CGA-c9xm-h55v-6mm5, CGA-cxwj-gcgq-w529, CGA-f27g-cm94-hpqw, CGA-f2xh-64hc-x378, CGA-f44g-j7j2-52rh, CGA-f56c-cpg4-hc5x, CGA-ffjh-49wp-26q5, CGA-fgpf-vc5v-qphw, CGA-fhq4-5vjj-hqvj, CGA-fq2h-gg36-r2qc, CGA-fwmv-fxjj-8jc8, CGA-g6vc-w4cj-hvjm, CGA-g7h8-5fpp-qmcw, CGA-gpxw-r5p3-q428, CGA-h222-xjrq-9c2c, CGA-hcqr-97qc-3c32, CGA-hh5h-wx25-6fcm, CGA-hjq7-mwmg-4qm8, CGA-hpp5-2qj3-6474, CGA-hv9q-fv86-jff8, CGA-j35r-5j63-2856, CGA-j4q7-4ph2-fx7v, CGA-j6jx-27jw-rc7j, CGA-j8q5-6vcq-4mxh, CGA-m4vc-pq74-f62r, CGA-m7mp-fp96-j3wv, CGA-mcx4-hqqm-mxg5, CGA-mh45-pj86-wp8x, CGA-mv5g-xpw5-3g3r, CGA-mvxp-846f-mgm8, CGA-mvxq-g9vw-2cpf, CGA-p368-9vjf-j6f4, CGA-p3mx-w356-pr88, CGA-p46j-66vv-jvhq, CGA-p4g2-6vgp-gq9f, CGA-ph6g-hjg8-5vfc, CGA-pr2c-hhm3-2vmp, CGA-r4jp-wr8h-ghhf, CGA-r8xw-8rv4-f69f, CGA-pwj5-vc8r-mj4j, CGA-q5h7-qxrh-v42r, CGA-q5q3-f8j3-q5q9, CGA-q64h-h98q-xprh, CGA-q8m6-7rqj-ww2r, CGA-qq46-xvmw-3w9c, CGA-r4cv-52rc-p92c, CGA-r7g6-23p2-4686, CGA-rhvw-vvj2-99c2, CGA-rwm2-x6rp-vr8w, CGA-w6mv-jr89-mh7f, CGA-x342-4hv5-8mwv, CGA-x899-7hf7-v55f, CGA-xp8x-9rm6-g8p7, CGA-3w52-5f7p-h378, CGA-q36h-6m47-rqf5, CGA-2pxv-jq9f-5v55, CGA-crf3-w734-h8v5, CGA-qw5x-f8mp-67rg, CGA-qxpq-pf5v-gh7c, CGA-v6wv-gpv2-vr5v, CGA-g4w9-3wrw-75w8, CGA-mxfh-9gcq-xfc8, CGA-p5wj-v724-vqh8, CGA-5j3h-8pmf-38mh, CGA-c94f-j3w4-x6q8
- Record: https://cvemate.com/vulnerability/CVE-2026-23374 · JSON: https://cvemate.com/vulnerability/CVE-2026-23374/json

## Description

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

blktrace: fix __this_cpu_read/write in preemptible context

tracing_record_cmdline() internally uses __this_cpu_read() and
__this_cpu_write() on the per-CPU variable trace_cmdline_save, and
trace_save_cmdline() explicitly asserts preemption is disabled via
lockdep_assert_preemption_disabled(). These operations are only safe
when preemption is off, as they were designed to be called from the
scheduler context (probe_wakeup_sched_switch() / probe_wakeup()).

__blk_add_trace() was calling tracing_record_cmdline(current) early in
the blk_tracer path, before ring buffer reservation, from process
context where preemption is fully enabled. This triggers the following
using blktests/blktrace/002:

blktrace/002 (blktrace ftrace corruption with sysfs trace)   [failed]
    runtime  0.367s  ...  0.437s
    something found in dmesg:
    [   81.211018] run blktests blktrace/002 at 2026-02-25 22:24:33
    [   81.239580] null_blk: disk nullb1 created
    [   81.357294] BUG: using __this_cpu_read() in preemptible [00000000] code: dd/2516
    [   81.362842] caller is tracing_record_cmdline+0x10/0x40
    [   81.362872] CPU: 16 UID: 0 PID: 2516 Comm: dd Tainted: G                 N  7.0.0-rc1lblk+ #84 PREEMPT(full)
    [   81.362877] Tainted: [N]=TEST
    [   81.362878] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014
    [   81.362881] Call Trace:
    [   81.362884]  <TASK>
    [   81.362886]  dump_stack_lvl+0x8d/0xb0
    ...
    (See '/mnt/sda/blktests/results/nodev/blktrace/002.dmesg' for the entire message)

[   81.211018] run blktests blktrace/002 at 2026-02-25 22:24:33
[   81.239580] null_blk: disk nullb1 created
[   81.357294] BUG: using __this_cpu_read() in preemptible [00000000] code: dd/2516
[   81.362842] caller is tracing_record_cmdline+0x10/0x40
[   81.362872] CPU: 16 UID: 0 PID: 2516 Comm: dd Tainted: G                 N  7.0.0-rc1lblk+ #84 PREEMPT(full)
[   81.362877] Tainted: [N]=TEST
[   81.362878] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014
[   81.362881] Call Trace:
[   81.362884]  <TASK>
[   81.362886]  dump_stack_lvl+0x8d/0xb0
[   81.362895]  check_preemption_disabled+0xce/0xe0
[   81.362902]  tracing_record_cmdline+0x10/0x40
[   81.362923]  __blk_add_trace+0x307/0x5d0
[   81.362934]  ? lock_acquire+0xe0/0x300
[   81.362940]  ? iov_iter_extract_pages+0x101/0xa30
[   81.362959]  blk_add_trace_bio+0x106/0x1e0
[   81.362968]  submit_bio_noacct_nocheck+0x24b/0x3a0
[   81.362979]  ? lockdep_init_map_type+0x58/0x260
[   81.362988]  submit_bio_wait+0x56/0x90
[   81.363009]  __blkdev_direct_IO_simple+0x16c/0x250
[   81.363026]  ? __pfx_submit_bio_wait_endio+0x10/0x10
[   81.363038]  ? rcu_read_lock_any_held+0x73/0xa0
[   81.363051]  blkdev_read_iter+0xc1/0x140
[   81.363059]  vfs_read+0x20b/0x330
[   81.363083]  ksys_read+0x67/0xe0
[   81.363090]  do_syscall_64+0xbf/0xf00
[   81.363102]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   81.363106] RIP: 0033:0x7f281906029d
[   81.363111] Code: 31 c0 e9 c6 fe ff ff 50 48 8d 3d 66 63 0a 00 e8 59 ff 01 00 66 0f 1f 84 00 00 00 00 00 80 3d 41 33 0e 00 00 74 17 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 5b c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec
[   81.363113] RSP: 002b:00007ffca127dd48 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[   81.363120] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f281906029d
[   81.363122] RDX: 0000000000001000 RSI: 0000559f8bfae000 RDI: 0000000000000000
[   81.363123] RBP: 0000000000001000 R08: 0000002863a10a81 R09: 00007f281915f000
[   81.363124] R10: 00007f2818f77b60 R11: 0000000000000246 R12: 0000559f8bfae000
[   81.363126] R13: 0000000000000000 R14: 0000000000000000 R15: 000000000000000a
[   81.363142]  </TASK>

The same BUG fires from blk_add_trace_plug(), blk_add_trace_unplug(),
and blk_add_trace_rq() paths as well.

The purpose of tracin
---truncated---
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.185%, percentile 8.476%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 206)

- chainguard hyperv-daemons-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18 (Chainguard): \< 6.18.57-r0 \| All versions (No fix recorded)
- chainguard linux-aws-6.18-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded) \| \< 6.18.57-r0
- chainguard linux-aws-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded) \| \< 6.18.57-r0
- chainguard linux-aws-6.18-headers (Chainguard): All versions (No fix recorded) \| \< 6.18.57-r0
- chainguard linux-aws-6.18-modules (Chainguard): All versions (No fix recorded) \| \< 6.18.57-r0
- chainguard linux-aws-6.18-nestkvm-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-firecracker-6.18 (Chainguard): All versions (No fix recorded)

## References (first 20 of 25)

- <https://git.kernel.org/stable/c/aaba6ee63ba65b026401c94e2dd16b9f6e895934>
- <https://git.kernel.org/stable/c/e5584932ac1dacc182c430d09e2b5490d1d4372b>
- <https://git.kernel.org/stable/c/59efa088752b1c380a0475974679850cc8aef907>
- <https://git.kernel.org/stable/c/da46b5dfef48658d03347cda21532bcdbb521e67>
- <https://ubuntu.com/security/CVE-2026-23374>
- <https://www.cve.org/CVERecord?id=CVE-2026-23374>
- <https://git.kernel.org/linus/da46b5dfef48658d03347cda21532bcdbb521e67>
- <https://ubuntu.com/security/notices/USN-8567-1>
- <https://ubuntu.com/security/notices/USN-8574-1>
- <https://ubuntu.com/security/notices/USN-8574-2>
- <https://ubuntu.com/security/notices/USN-8595-1>
- <https://ubuntu.com/security/notices/USN-8596-1>
- <https://ubuntu.com/security/notices/USN-8595-2>
- <https://ubuntu.com/security/notices/USN-8606-1>
- <https://ubuntu.com/security/notices/USN-8607-1>
- <https://ubuntu.com/security/notices/USN-8608-1>
- <https://ubuntu.com/security/notices/USN-8609-1>
- <https://ubuntu.com/security/notices/USN-8574-3>
- <https://ubuntu.com/security/notices/USN-8595-3>
- <https://ubuntu.com/security/notices/USN-8619-1>

---

Data as of 2026-12-05T04:23:17.664Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
