Skip to content
Noroxi
NVD / CVE Program· CNA Linux

CVE-2021-47497: nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells

HighCVSS 7.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 31/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.22% (FIRST EPSS).
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: Linux Linux 0594f1d048d8dc338eb9a240021b1d00ae1eb082, 0e822e5413da1af28cca350cb1cb42b6133bdcae, 2df6c023050205c4d04ffc121bc549f65cb8d1df.
  • Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to Linux Linux 0594f1d048d8dc338eb9a240021b1d00ae1eb082, 0e822e5413da1af28cca350cb1cb42b6133bdcae, 2df6c023050205c4d04ffc121bc549f65cb8d1df or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

In the Linux kernel, the following vulnerability has been resolved: nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells If a cell has 'nbits' equal to a multiple of BITS_PER_BYTE the logic *p &= GENMASK((cell->nbits%BITS_PER_BYTE) - 1, 0); will become undefined behavior because nbits modulo BITS_PER_BYTE is 0, and we subtract one from that making a large number that is then shifted more than the number of bits that fit into an unsigned long. UBSAN reports this problem: UBSAN: shift-out-of-bounds in drivers/nvmem/core.c:1386:8 shift exponent 64 is too large for 64-bit type 'unsigned long' CPU: 6 PID: 7 Comm: kworker/u16:0 Not tainted 5.15.0-rc3+ #9 Hardware name: Google Lazor (rev3+) with KB Backlight (DT) Workqueue: events_unbound deferred_probe_work_func Call trace: dump_backtrace+0x0/0x170 show_stack+0x24/0x30 dump_stack_lvl+0x64/0x7c dump_stack+0x18/0x38 ubsan_epilogue+0x10/0x54 __ubsan_handle_shift_out_of_bounds+0x180/0x194 __nvmem_cell_read+0x1ec/0x21c nvmem_cell_read+0x58/0x94 nvmem_cell_read_variable_common+0x4c/0xb0 nvmem_cell_read_variable_le_u32+0x40/0x100 a6xx_gpu_init+0x170/0x2f4 adreno_bind+0x174/0x284 component_bind_all+0xf0/0x264 msm_drm_bind+0x1d8/0x7a0 try_to_bring_up_master+0x164/0x1ac __component_add+0xbc/0x13c component_add+0x20/0x2c dp_display_probe+0x340/0x384 platform_probe+0xc0/0x100 really_probe+0x110/0x304 __driver_probe_device+0xb8/0x120 driver_probe_device+0x4c/0xfc __device_attach_driver+0xb0/0x128 bus_for_each_drv+0x90/0xdc __device_attach+0xc8/0x174 device_initial_probe+0x20/0x2c bus_probe_device+0x40/0xa4 deferred_probe_work_func+0x7c/0xb8 process_one_work+0x128/0x21c process_scheduled_works+0x40/0x54 worker_thread+0x1ec/0x2a8 kthread+0x138/0x158 ret_from_fork+0x10/0x20 Fix it by making sure there are any bits to mask out.

Published
May 22, 2024
Updated
Jun 17, 2026
EPSS
0.2% · 12th percentile

Report tools

JSON

Action score

31

Monitor

Low priority for now.

CVSS
31 / 40 · 7.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.2%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-47497

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
linuxlinux kernel

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 4.3affected
    • 69aba7948cbe53f2f1827e84e9dd0ae470a5072e and later · before abcb8d33e4d2215ccde5ab5ccf9f730a59d79d97affected · git
    • 69aba7948cbe53f2f1827e84e9dd0ae470a5072e and later · before 60df06bbdf497e37ed25ad40572c362e5b0998dfaffected · git
    • 69aba7948cbe53f2f1827e84e9dd0ae470a5072e and later · before 2df6c023050205c4d04ffc121bc549f65cb8d1dfaffected · git
    • 69aba7948cbe53f2f1827e84e9dd0ae470a5072e and later · before eb0fc8e7170e61eaf65d28dee4a8baf4e86b19caaffected · git
    • 69aba7948cbe53f2f1827e84e9dd0ae470a5072e and later · before 0594f1d048d8dc338eb9a240021b1d00ae1eb082affected · git
    • 69aba7948cbe53f2f1827e84e9dd0ae470a5072e and later · before 57e48886401b14cd351423fabfec2cfd18df4f66affected · git
    • 69aba7948cbe53f2f1827e84e9dd0ae470a5072e and later · before 0e822e5413da1af28cca350cb1cb42b6133bdcaeaffected · git
    • 69aba7948cbe53f2f1827e84e9dd0ae470a5072e and later · before 5d388fa01fa6eb310ac023a363a6cb216d9d8fe9affected · git
    • before 4.3not affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8bpftoolbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernelbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-abi-stablelistsbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-corebefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-cross-headersbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-debugbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-debug-corebefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-debug-develbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-debug-modulesbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-debug-modules-extrabefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-develbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-docbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-headersbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-modulesbefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-modules-extrabefore 4.18.0-553.22.1.el8_104.18.0-553.22.1.el8_10
AlmaLinux:8kernel-rtbefore 4.18.0-553.22.1.rt7.363.el8_104.18.0-553.22.1.rt7.363.el8_10
AlmaLinux:8kernel-rt-corebefore 4.18.0-553.22.1.rt7.363.el8_104.18.0-553.22.1.rt7.363.el8_10
AlmaLinux:8kernel-rt-debugbefore 4.18.0-553.22.1.rt7.363.el8_104.18.0-553.22.1.rt7.363.el8_10
AlmaLinux:8kernel-rt-debug-corebefore 4.18.0-553.22.1.rt7.363.el8_104.18.0-553.22.1.rt7.363.el8_10
AlmaLinux:8kernel-rt-debug-develbefore 4.18.0-553.22.1.rt7.363.el8_104.18.0-553.22.1.rt7.363.el8_10
AlmaLinux:8kernel-rt-debug-kvmbefore 4.18.0-553.22.1.rt7.363.el8_104.18.0-553.22.1.rt7.363.el8_10
AlmaLinux:8kernel-rt-debug-modulesbefore 4.18.0-553.22.1.rt7.363.el8_104.18.0-553.22.1.rt7.363.el8_10
AlmaLinux:8kernel-rt-debug-modules-extrabefore 4.18.0-553.22.1.rt7.363.el8_104.18.0-553.22.1.rt7.363.el8_10
AlmaLinux:8kernel-rt-develbefore 4.18.0-553.22.1.rt7.363.el8_104.18.0-553.22.1.rt7.363.el8_10

+96

Other highest-scoring records for the same primary product.

  • CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV
    90Now
  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now

Published before and after this one in the same product

  • ← EarlierCVE-2021-47495May 22, 2024 · usbnet: sanity check for maxpacket
    22Monitor
  • ← EarlierCVE-2021-47496May 22, 2024 · net/tls: Fix flipped sign in tls_err_abort() calls
    31Monitor
  • Later →CVE-2021-47498May 22, 2024 · dm rq: don't queue request to blk-mq during DM suspend
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux0594f1d048d8dc338eb9a240021b1d00ae1eb082Vendor (CNA)
Linux Linux0e822e5413da1af28cca350cb1cb42b6133bdcaeVendor (CNA)
Linux Linux2df6c023050205c4d04ffc121bc549f65cb8d1dfVendor (CNA)
Linux Linux57e48886401b14cd351423fabfec2cfd18df4f66Vendor (CNA)
Linux Linux5d388fa01fa6eb310ac023a363a6cb216d9d8fe9Vendor (CNA)
Linux Linux60df06bbdf497e37ed25ad40572c362e5b0998dfVendor (CNA)
Linux Linuxabcb8d33e4d2215ccde5ab5ccf9f730a59d79d97Vendor (CNA)
Linux Linuxeb0fc8e7170e61eaf65d28dee4a8baf4e86b19caVendor (CNA)
almalinux:bpftool4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-abi-stablelists4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-core4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-cross-headers4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug-core4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug-devel4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug-modules4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug-modules-extra4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-devel4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-doc4.18.0-553.22.1.el8_10 · AlmaLinux:8Package registry (OSV)
debian:linux5.14.16-1 · Debian:12Package registry (OSV)
red hat:bpftool0:4.18.0-553.22.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:bpftool-debuginfo0:4.18.0-553.22.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel0:4.18.0-553.22.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-abi-stablelists0:4.18.0-553.22.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-core0:4.18.0-553.22.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug0:4.18.0-553.22.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-core0:4.18.0-553.22.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-debuginfo0:4.18.0-553.22.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-devel0:4.18.0-553.22.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)

+5

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

Weakness class (CWE)

CWE-787 · Out-of-bounds Write

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records