{"id":"CVE-2026-143075","state":"PUBLISHED","title":"tracing/probes: Fix BTF bitfield parsing and out-of-bounds buffer write","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing/probes: Fix BTF bitfield parsing and out-of-bounds buffer write\n\nBTF bitfield parsing in trace_probe.c assumes a 64-bit (8-byte) container\nwhen computing FETCH_OP_MOD_BF shift amounts and basesize, whereas the\npreceding store instruction only allocates and writes the field's fetch\ntype size (which may be 1, 2, or 4 bytes when kflag=1). At runtime,\nfetch_apply_bitfield() performs an 8-byte read-modify-write on the\nsmaller ring buffer slot, corrupting adjacent ring buffer data or writing\npast the end of the event record.\n\nIn addition, signed bitfields with bit widths other than 8/16/32/64 fail\nto resolve a fetch type, bitfields whose width is a multiple of 8 inside\na larger integer or spanning a byte boundary fail to emit FETCH_OP_MOD_BF\nor select a container wide enough for bitoffs + bitsize, kflag=0 bitfield\noffsets >= 8 bits are not folded into the byte offset, and big-endian\narchitectures use the little-endian left-shift formula in\nparse_btf_bitfield().\n\nCompute the bitfield byte and bit offsets consistently during field\nlookup, select the smallest unsigned fetch type that covers the bit\noffset and bit width, and calculate the FETCH_OP_MOD_BF parameters from\nthe selected fetch type size for both big- and little-endian bitfields.","publishedAt":"2026-12-03T09:18:55.665Z","updatedAt":"2026-12-03T09:18:55.665Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c440adfbe30257dde905adc1fce51131145f7245","status":"affected","lessThan":"75376ee10548e0767984205fccd98eb1108b2bf9","versionType":"git"},{"version":"c440adfbe30257dde905adc1fce51131145f7245","status":"affected","lessThan":"9b6e9d6a11090ac34516c45f48663b37ac94a9b1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/trace_probe.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/trace_probe.c"]}],"references":["https://git.kernel.org/stable/c/75376ee10548e0767984205fccd98eb1108b2bf9","https://git.kernel.org/stable/c/9b6e9d6a11090ac34516c45f48663b37ac94a9b1"],"weaknesses":[],"ingestedAt":"2026-12-03T09:28:04.553Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143075.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143075","state":"PUBLISHED","datePublished":"2026-12-03T09:18:55.665Z","dateUpdated":"2026-12-03T09:18:55.665Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.346Z"},"containers":{"cna":{"title":"tracing/probes: Fix BTF bitfield parsing and out-of-bounds buffer write","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing/probes: Fix BTF bitfield parsing and out-of-bounds buffer write\n\nBTF bitfield parsing in trace_probe.c assumes a 64-bit (8-byte) container\nwhen computing FETCH_OP_MOD_BF shift amounts and basesize, whereas the\npreceding store instruction only allocates and writes the field's fetch\ntype size (which may be 1, 2, or 4 bytes when kflag=1). At runtime,\nfetch_apply_bitfield() performs an 8-byte read-modify-write on the\nsmaller ring buffer slot, corrupting adjacent ring buffer data or writing\npast the end of the event record.\n\nIn addition, signed bitfields with bit widths other than 8/16/32/64 fail\nto resolve a fetch type, bitfields whose width is a multiple of 8 inside\na larger integer or spanning a byte boundary fail to emit FETCH_OP_MOD_BF\nor select a container wide enough for bitoffs + bitsize, kflag=0 bitfield\noffsets >= 8 bits are not folded into the byte offset, and big-endian\narchitectures use the little-endian left-shift formula in\nparse_btf_bitfield().\n\nCompute the bitfield byte and bit offsets consistently during field\nlookup, select the smallest unsigned fetch type that covers the bit\noffset and bit width, and calculate the FETCH_OP_MOD_BF parameters from\nthe selected fetch type size for both big- and little-endian bitfields."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c440adfbe30257dde905adc1fce51131145f7245","status":"affected","lessThan":"75376ee10548e0767984205fccd98eb1108b2bf9","versionType":"git"},{"version":"c440adfbe30257dde905adc1fce51131145f7245","status":"affected","lessThan":"9b6e9d6a11090ac34516c45f48663b37ac94a9b1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/trace_probe.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/trace_probe.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/75376ee10548e0767984205fccd98eb1108b2bf9"},{"url":"https://git.kernel.org/stable/c/9b6e9d6a11090ac34516c45f48663b37ac94a9b1"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:18:55.665Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}