Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2021-27365: Linux kernel iSCSI heap buffer overflow

Published Mar 7, 2021 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS2.1%82nd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
NetAppDebian ProjectLinuxOracle Corporation
IdentifiersCVE-2021-27365CWE-122

CVE-2021-27365 is a heap-based buffer overflow in the Linux kernel iSCSI subsystem, affecting unpatched kernels through 5.11.3. Insufficient length validation allows an unprivileged local user to set iSCSI string attributes through Netlink messages to values exceeding PAGE_SIZE. Subsequently reading these attributes through sysfs invokes string-formatting operations, including sprintf() in iscsi_host_get_param(), against a single-page output buffer, causing an overflow. The vulnerability can enable local privilege escalation, kernel-memory disclosure, or denial of service.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can compromise kernel confidentiality, integrity, and availability through memory disclosure, heap corruption, privilege escalation to root, or a kernel panic. An unprivileged-to-root exploit was demonstrated on RHEL 8.1 through 8.3 by combining this overflow with CVE-2021-27363 and additional information leakage. That exploit bypassed SMEP, SMAP, and KPTI, but its reliability and applicability depend on the kernel build and allocator hardening.

Mitigation

If you can’t patch tonight, do this now.

Where iSCSI is unnecessary, prevent the libiscsi module and required iSCSI transports from loading, including through automatic module-loading paths. If affected modules are already loaded and cannot safely be unloaded, restart after applying the loading restrictions. Disabling these modules is unsuitable for systems that depend on iSCSI storage. Restricting unprivileged module autoloading provides additional defense in depth. CONFIG_SLAB_FREELIST_HARDENED blocks the demonstrated freelist-corruption exploit technique as written, but does not fix the underlying vulnerability or establish that alternative exploitation is impossible.

Remediation

Patch, then assume compromise.

Install a distribution-supported kernel update explicitly fixing CVE-2021-27365 and reboot into the patched kernel. Available fixed packages include Fedora kernel 5.10.21, RHEL 7 kernel 3.10.0-1160.24.1.el7, RHEL 8.1 EUS kernel 4.18.0-147.44.1.el8_1, and RHEL 8.2 EUS kernel 4.18.0-193.51.1.el8_2. Use the appropriate current package for the deployed distribution and support stream. Where supported, a vendor-provided kpatch live update matching the running kernel can apply the fix without a conventional reboot.

Public exploits

Exploits

No validated public exploits yet. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
LinuxLinux Kerneloperating_system
NetAppCloud Backupapplication
NetAppSolidfire Baseboard Management Controller Firmwareoperating_system
Oracle CorporationTekelec Platform Distributionapplication
FAQ

Frequently asked questions

Is CVE-2021-27365 exploited in the wild?
As of Oct 30, 2026, Mallory has no reports of CVE-2021-27365 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2021-27365?
Yes. As of Oct 30, 2026, Mallory has reports of a public exploit for CVE-2021-27365.
Is there a patch for CVE-2021-27365?
Install a distribution-supported kernel update explicitly fixing CVE-2021-27365 and reboot into the patched kernel. Available fixed packages include Fedora kernel 5.10.21, RHEL 7 kernel 3.10.0-1160.24.1.el7, RHEL 8.1 EUS kernel 4.18.0-147.44.1.el8_1, and RHEL 8.2 EUS kernel 4.18.0-193.51.1.el8_2.
What products are affected by CVE-2021-27365?
Linux Kernel, NetApp Cloud Backup, Debian Project Debian Linux, NetApp Solidfire Baseboard Management Controller Firmware, and Oracle Corporation Tekelec Platform Distribution.
How severe is CVE-2021-27365?
CVE-2021-27365 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 2.1% (82nd percentile) as of Oct 30, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.