Linux: tracing: Keep the predicate limit separate from program capacity
What fixes it
- 2058a1fe791bb30fd6e4875a7ada3237076c8541LinuxCVE List
- 68ecc9510bb82dd78585c02bd5357f34ee16b153LinuxCVE List
- 803aa6fc2dbea25ab9d3ed19eca1c96d0ab17445LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
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.
Text from CVE List
Affected versions 8
- Linuxaffected: 39f7c41c908bc82947ce47cdd021520ff486c53f before 2058a1fe791bb30fd6e4875a7ada3237076c8541CVE List
- Linuxaffected: 39f7c41c908bc82947ce47cdd021520ff486c53f before 68ecc9510bb82dd78585c02bd5357f34ee16b153CVE List
- Linuxaffected: 39f7c41c908bc82947ce47cdd021520ff486c53f before 803aa6fc2dbea25ab9d3ed19eca1c96d0ab17445CVE List
- Linuxaffected: 6.6CVE List
- Linuxunaffected: all versions before 6.6CVE List
- Linuxunaffected: 6.18.59 through 6.18.*CVE List
- Linuxunaffected: 7.2.13 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List