Skip to content

Commit

Permalink
Merge pull request #928 from m-1-k-3/master
Browse files Browse the repository at this point in the history
  • Loading branch information
m-1-k-3 committed Nov 30, 2023
2 parents 38f7806 + 09438ca commit a9ea8f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/S26_kernel_vuln_verifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,11 @@ S26_kernel_vuln_verifier()
CVSS2="$(echo "${VULN}" | cut -d: -f2)"
CVSS3="$(echo "${VULN}" | cut -d: -f3)"
SUMMARY="$(echo "${VULN}" | cut -d: -f4-)"
# print_output "$(indent "CVSSv2: ${ORANGE}${CVSS2}${NC} / CVSSv3: ${ORANGE}${CVSS3}${NC} / Summary: ${ORANGE}${SUMMARY}${NC}")"

# extract kernel source paths from summary -> we use these paths to check if they are used by our
# symbols or during kernel compilation
mapfile -t K_PATHS < <(echo "${SUMMARY}" | tr ' ' '\n' | grep ".*\.[chS]$" | sed -r 's/CVE-[0-9]+-[0-9]+:[0-9].*://' \
mapfile -t K_PATHS < <(echo "${SUMMARY}" | tr ' ' '\n' | sed 's/\\$//' | grep ".*\.[chS]$" | sed -r 's/CVE-[0-9]+-[0-9]+:[0-9].*://' \
| sed -r 's/CVE-[0-9]+-[0-9]+:null.*://' | sed 's/^(//' | sed 's/)$//' | sed 's/,$//' | sed 's/\.$//' | cut -d: -f1 || true)

for K_PATH in "${K_PATHS[@]}"; do
Expand Down

0 comments on commit a9ea8f4

Please sign in to comment.