Exploit database

GH-9a497cc26994d431b276e9e3b7a8f75c

satheesh575555/linux-4.19.72_cve-2023-0386

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-0386

20 sources

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

Repository files6

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

tools/testing/selftests/drivers/net/mlxsw/spectrum/tc_flower_scale.sh

Shell · 387 bytes
# SPDX-License-Identifier: GPL-2.0
source ../tc_flower_scale.sh

tc_flower_get_target()
{
	local should_fail=$1; shift

	# 6144 (6x1024) is the theoretical maximum.
	# One bank of 512 rules is taken by the 18-byte MC router rule.
	# One rule is the ACL catch-all.
	# 6144 - 512 - 1 = 5631
	local target=5631

	if ((! should_fail)); then
		echo $target
	else
		echo $((target + 1))
	fi
}