Linux kernel out-of-bounds access in tracing predicate parser
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tracing: Keep the predicate limit separate from program capacity
predicate_parse() adds two to nr_preds to reserve the terminal TRUE and FALSE entries. It also uses that increased value as the limit for parsed predicates. If the initial count is smaller than the number actually parsed, the program can fill the allocation and subsequent accesses can go past its end.
Keep nr_preds as the predicate limit and use a separate value for the allocation size. This leaves space for both terminal entries and a zeroed entry when parsing stops at the limit.
From the CVE record · Linux
The Linux kernel's tracing predicate parser can use an increased allocation size as its predicate limit. If it parses more predicates than initially counted, subsequent accesses can go past the allocation's end. The input does not specify how an attacker could trigger this or whether access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the tracing predicate parsing fix; affected versions are not specified.