Trivy does not detect vulnerabilities on ubuntu kernel #9418
Replies: 5 comments 9 replies
-
|
if needed, I can provide a rootfs that reproduces the issue |
Beta Was this translation helpful? Give feedback.
-
|
to reproduce it easily on aws instance
|
Beta Was this translation helpful? Give feedback.
-
|
Hello @wagde-orca |
Beta Was this translation helpful? Give feedback.
-
|
@DmitriyLewen thanx for looking into it. and of course we have the linux-headers, modules, tools packages.... |
Beta Was this translation helpful? Give feedback.
-
|
trivy_res_new.tar.gz |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am running trivy 0.65.0 in rootfs mode on a full filesystem of ubuntu 22 running with kernel 5.15 (linux-image-5.15.0-1004-aws) and when scanning for vulnerabilities running this command
trivy rootfs /mnt/ubuntu22/ --scanners vuln --format json --output trivy_res.json --debug --list-all-pkgsI see no vulnerabilities detected on the linux-image package.... but I see detections on linux-headers, linux-modules, ....
for example: CVE-2025-38041, I see it is detected on on
"PkgID": "[email protected]",
"PkgID": "[email protected]",
"PkgID": "[email protected]",
"PkgID": "[email protected]",
but not detected neither on
"ID": "[email protected]",
nor
"ID": "[email protected]",
Desired Behavior
I expect to see the CVEs that are affecting the kernel to be reported on the linux-image package (one of them)
Actual Behavior
I see the CVEs only in linux-headers, linux-modules packages...
Reproduction Steps
Target
Filesystem
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Debug Output
Operating System
ubuntu 24
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions