Red Hat Bugzilla – Bug 1623009
CVE-2018-15853 libxkbcommon: Endless recursion in xkbcomp/expr.c resulting in a crash
Last modified: 2018-10-25 11:20:38 EDT
Endless recursion exists in xkbcomp/expr.c in xkbcommon and libxkbcommon before 0.8.1, which could be used by local attackers to crash xkbcommon users by supplying a crafted keymap file that triggers boolean negation. Upstream patch: https://github.com/xkbcommon/libxkbcommon/commit/1f9d1248c07cda8aaff762429c0dce146de8632a References: https://lists.freedesktop.org/archives/wayland-devel/2018-August/039232.html
Created libxkbcommon tracking bugs for this issue: Affects: fedora-all [bug 1642852]
When parsing a boolean expression that is composed by another boolean expression, like a negated expression, the ExprResolveBoolean() function is recursively called, but on the same expression that was currently analyzed and not on the sub-expression, causing an infinite recursion.