CVE-2026-143075: tracing/probes: Fix BTF bitfield parsing and out-of-bounds buffer write
In the Linux kernel, the following vulnerability has been resolved:
tracing/probes: Fix BTF bitfield parsing and out-of-bounds buffer write
BTF bitfield parsing in traceprobe.c assumes a 64-bit (8-byte) container when computing FETCHOPMODBF shift amounts and basesize, whereas the preceding store instruction only allocates and writes the field's fetch type size (which may be 1, 2, or 4 bytes when kflag=1). At runtime, fetchapplybitfield() performs an 8-byte read-modify-write on the smaller ring buffer slot, corrupting adjacent ring buffer data or writing past the end of the event record.
In addition, signed bitfields with bit widths other than 8/16/32/64 fail to resolve a fetch type, bitfields whose width is a multiple of 8 inside a larger integer or spanning a byte boundary fail to emit FETCHOPMODBF or select a container wide enough for bitoffs + bitsize, kflag=0 bitfield offsets >= 8 bits are not folded into the byte offset, and big-endian architectures use the little-endian left-shift formula in parsebtfbitfield().
Compute the bitfield byte and bit offsets consistently during field lookup, select the smallest unsigned fetch type that covers the bit offset and bit width, and calculate the FETCHOPMODBF parameters from the selected fetch type size for both big- and little-endian bitfields.
Affected Software
Event History
Frequently Asked Questions
Which bitfield layouts are most relevant when assessing exposure?
Prioritize BTF-backed tracing probe fields with kflag=1 whose fetch type is 1, 2, or 4 bytes, because bitfield handling can perform an 8-byte read-modify-write against that smaller event-record slot. Also assess fields that span byte boundaries, have bit widths that are multiples of 8 within a larger integer, or require a container wider than the bitfield itself.
Are big-endian systems affected differently?
Yes. The affected parsing used a little-endian left-shift calculation on big-endian architectures, so bitfield offsets can be computed incorrectly there.
Can this issue present as a probe parsing or type-resolution problem rather than record corruption?
Yes. Signed bitfields with widths other than 8, 16, 32, or 64 can fail to resolve a fetch type. For kflag=0 fields, offsets of 8 bits or greater may also be handled incorrectly because the offset is not folded into the byte offset.