Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/kernelcve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ const std::vector<KCve>& table() {
{"CVE-2022-42720", "5.1", "6.1", "RCE", {"CONFIG_MAC80211"}, {}, "mac80211 BSS refcount UAF; remote (companion to 42719)."},
// Bluetooth (CONFIG_BT): remote over BR/EDR (BleedingTooth); proximity RCE.
{"CVE-2020-12351", "4.8", "5.10", "RCE", {"CONFIG_BT"}, {}, "BleedingTooth: L2CAP A2MP type confusion; remote BT RCE."},
{"CVE-2024-24246", "", "6.7", "LPE", {"CONFIG_QAT"}, {}, "QAT driver UAF (hardware-specific)."},

// --- misc high-signal ---
{"CVE-2021-27365", "", "5.11.4", "LPE", {"CONFIG_SCSI_ISCSI_ATTRS"}, {}, "iSCSI netlink heap OOB."},
Expand Down
8 changes: 8 additions & 0 deletions tests/unit/unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,14 @@ static void test_kernelcve() {
dp->reason.find("config unknown") != std::string::npos);
CHECK(find_kcve(r, "CVE-2016-5195") == nullptr); // Dirty COW fixed 4.8.3 -> out of range

// CVE-2024-24246 is a qpdf heap-buffer-overflow, not a Linux/QAT CVE.
// Keep it out of the kernel checklist regardless of version or QAT config.
std::set<std::string> qat = {"CONFIG_QAT"};
for (const auto* version : {"3.4.0", "6.3", "6.6.86"}) {
CHECK(find_kcve(ft::kernel_cve_scan(version, NOCFG), "CVE-2024-24246") == nullptr);
CHECK(find_kcve(ft::kernel_cve_scan(version, &qat), "CVE-2024-24246") == nullptr);
}

// Config gating: NF_TABLES present -> nftables applies; io_uring absent -> ruled out.
std::set<std::string> cfg = {"CONFIG_NF_TABLES"};
auto r2 = ft::kernel_cve_scan("6.3", &cfg);
Expand Down
Loading