cbcvebase.
CVE-2022-50553
published 2025-10-07

CVE-2022-50553: In the Linux kernel, the following vulnerability has been resolved: tracing/hist: Fix out-of-bound write on 'action_data.var_ref_idx' When generate a synthetic…

PriorityP422medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.19%
9.1th percentile
In the Linux kernel, the following vulnerability has been resolved: tracing/hist: Fix out-of-bound write on 'action_data.var_ref_idx' When generate a synthetic event with many params and then create a trace action for it [1], kernel panic happened [2]. It is because that in trace_action_create() 'data->n_params' is up to SYNTH_FIELDS_MAX (current value is 64), and array 'data->var_ref_idx' keeps indices into array 'hist_data->var_refs' for each synthetic event param, but the length of 'data->var_ref_idx' is TRACING_MAP_VARS_MAX (current value is 16), so out-of-bound write happened when 'data->n_params' more than 16. In this case, 'data->match_data.event' is overwritten and eventually cause the panic. To solve the issue, adjust the length of 'data->var_ref_idx' to be SYNTH_FIELDS_MAX and add sanity checks to avoid out-of-bound write. [1] # cd /sys/kernel/tracing/ # echo "my_synth_event int v1; int v2; int v3; int v4; int v5; int v6;\ int v7; int v8; int v9; int v10; int v11; int v12; int v13; int v14;\ int v15; int v16; int v17; int v18; int v19; int v20; int v21; int v22;\ int v23; int v24; int v25; int v26; int v27; int v28; int v29; int v30;\ int v31; int v32; int v33; int v34; int v35; int v36; int v37; int v38;\ int v39; int v40; int v41; int v42; int v43; int v44; int v45; int v46;\ int v47; int v48; int v49; int v50; int v51; int v52; int v53; int v54;\ int v55; int v56; int v57; int v58; int v59; int v60; int v61; int v62;\ int v63" >> synthetic_events # echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="bash"' >> \ events/sched/sched_waking/trigger # echo "hist:keys=next_pid:onmatch(sched.sched_waking).my_synth_event(\ pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,\ pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,\ pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,pid,\ pid,pid,pid,pid,pid,pid,pid,pid,pid)" >> events/sched/sched_switch/trigger [2] BUG: unable to handle page fault

Affected

20 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.4-1 (bookworm)linux 6.1.4-1 (bookworm)
linuxlinux
linuxlinux
linuxlinux>= 38b67e60b6b582e81f9db1b2e7176cbbfbd3e574 < cf79d5410a569dad1d4112b5c3c02383cca8213acf79d5410a569dad1d4112b5c3c02383cca8213a
linuxlinux>= 5.4.19 < 5.4.2295.4.229
linuxlinux>= 5.5.6 < 5.65.6
linuxlinux>= d380dcde9a07ca5de4805dee11f58a98ec0ad6ff < 0cb31bd88361edb96cfc622648717ba348f0f4dc0cb31bd88361edb96cfc622648717ba348f0f4dc
linuxlinux>= d380dcde9a07ca5de4805dee11f58a98ec0ad6ff < 15697f653399253f9be4ed2a1e03d795f3cfee9415697f653399253f9be4ed2a1e03d795f3cfee94
linuxlinux>= d380dcde9a07ca5de4805dee11f58a98ec0ad6ff < b4efdc219fb8cfa066c7042e636ab8ad6d7e7494b4efdc219fb8cfa066c7042e636ab8ad6d7e7494
linuxlinux>= d380dcde9a07ca5de4805dee11f58a98ec0ad6ff < 04241956ce8825ff06e06e4083e7b692e9d5f71204241956ce8825ff06e06e4083e7b692e9d5f712
linuxlinux>= d380dcde9a07ca5de4805dee11f58a98ec0ad6ff < 82470f7d9044842618c847a7166de2b7458157a782470f7d9044842618c847a7166de2b7458157a7
linuxlinux_kernel>= 0 < 5.10.178-15.10.178-1
linuxlinux_kernel>= 0 < 6.1.4-16.1.4-1
linuxlinux_kernel>= 0 < 6.1.4-16.1.4-1
linuxlinux_kernel>= 0 < 6.1.4-16.1.4-1
linuxlinux_kernel>= 5.11 < 5.15.875.15.87
linuxlinux_kernel>= 5.16 < 6.0.186.0.18
linuxlinux_kernel>= 5.4.19 < 5.4.2295.4.229
linuxlinux_kernel>= 5.5.6 < 5.10.1635.10.163
linuxlinux_kernel>= 6.1 < 6.1.46.1.4

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.