Exploit database

GH-a4473dcd9930d1ae4c0775adc06b1cfb

satheesh575555/linux-4.19.72_cve-2022-36946

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-36946

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files38

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

tools/testing/selftests/net/forwarding/tc_common.sh

Shell · 468 bytes
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0

CHECK_TC="yes"

tc_check_packets()
{
	local id=$1
	local handle=$2
	local count=$3
	local ret

	output="$(tc -j -s filter show $id)"
	# workaround the jq bug which causes jq to return 0 in case input is ""
	ret=$?
	if [[ $ret -ne 0 ]]; then
		return $ret
	fi
	echo $output | \
		jq -e ".[] \
		| select(.options.handle == $handle) \
		| select(.options.actions[0].stats.packets == $count)" \
		&> /dev/null
	return $?
}