PT-2026-163350
CVE-2026-139309
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
bpf: Bound the nesting that the BTF show code follows
btf struct show() and btf array show() recurse for every nested struct
and array. MAX RESOLVE DEPTH bounds one resolve walk when BTF is loaded,
not the nesting: a member whose type is resolved already is not walked
again, so BTF that defines its types from the inside out can nest them as
deep as it has types.
Whoever may load BTF, with CAP BPF or a BPF token, can give such a type
to the value of a map. Reading the file of that map in bpffs then
overruns the kernel stack: with a few hundred levels the stack guard page
is hit and the kernel panics.
Stop at 32 levels. That is MAX RESOLVE DEPTH, and btf show indent()
has as many columns. Nothing is shown for a member that lies deeper, and
the status becomes -E2BIG, which bpf snprintf btf() and
bpf seq printf btf() return. The types of an x86 64 defconfig kernel nest
14 deep.
Found an issue in the description? Have something to add? Feel free to write us 👾