# CVE-2021-47440: net: encx24j600: check error in devm\_regmap\_init\_encx24j600

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.3
- **CVSS:** 2.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-22T06:19:34.890Z
- **Modified:** 2026-06-17T04:17:28.580Z

## Who should check

- Anyone running Linux \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 66358471fa75a713fd76bc8a4bd74cb14cd50a4f; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< f043fac1133a6c5ef960a8422c0f6dd711dee462; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< fddc7f678d7fb93caa0d7bc512f968ff1e2bddbc; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 5e5494e6fc8a29c927e0478bec4a078a40da8901; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 4c2eb80fc90b05559ce6ed1b8dfb2348420b5644; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< e19c10d6e07c59c96e90fe053a72683ad8b0397e; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 322c0e53496309e634d9db7349678eaad1d25b55; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< f03dca0c9e2297c84a018e306f8a9cd534ee4287
- Anyone running Linux 4.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: encx24j600: check error in devm\_regmap\_init\_encx24j600

devm\_regmap\_init may return error which caused by like out of memory,
this will results in null pointer dereference later when reading
or writing register:

general protection fault in encx24j600\_spi\_probe
KASAN: null-ptr-deref in range \[0x0000000000000090-0x0000000000000097\]
CPU: 0 PID: 286 Comm: spi-encx24j600- Not tainted 5.15.0-rc2-00142-g9978db750e31-dirty \#11 9c53a778c1306b1b02359f3c2bbedc0222cba652
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014
RIP: 0010:regcache\_cache\_bypass drivers/base/regmap/regcache.c:540
Code: 54 41 89 f4 55 53 48 89 fb 48 83 ec 08 e8 26 94 a8 fe 48 8d bb a0 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 \<80\> 3c 02 00 0f 85 4a 03 00 00 4c 8d ab b0 00 00 00 48 8b ab a0 00
RSP: 0018:ffffc900010476b8 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: fffffffffffffff4 RCX: 0000000000000000
RDX: 0000000000000012 RSI: ffff888002de0000 RDI: 0000000000000094
RBP: ffff888013c9a000 R08: 0000000000000000 R09: fffffbfff3f9cc6a
R10: ffffc900010476e8 R11: fffffbfff3f9cc69 R12: 0000000000000001
R13: 000000000000000a R14: ffff888013c9af54 R15: ffff888013c9ad08
FS:  00007ffa984ab580(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a6384136c8 CR3: 000000003bbe6003 CR4: 0000000000770ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
PKRU: 55555554
Call Trace:
 encx24j600\_spi\_probe drivers/net/ethernet/microchip/encx24j600.c:459
 spi\_probe drivers/spi/spi.c:397
 really\_probe drivers/base/dd.c:517
 \_\_driver\_probe\_device drivers/base/dd.c:751
 driver\_probe\_device drivers/base/dd.c:782
 \_\_device\_attach\_driver drivers/base/dd.c:899
 bus\_for\_each\_drv drivers/base/bus.c:427
 \_\_device\_attach drivers/base/dd.c:971
 bus\_probe\_device drivers/base/bus.c:487
 device\_add drivers/base/core.c:3364
 \_\_spi\_add\_device drivers/spi/spi.c:599
 spi\_add\_device drivers/spi/spi.c:641
 spi\_new\_device drivers/spi/spi.c:717
 new\_device\_store+0x18c/0x1f1 \[spi\_stub 4e02719357f1ff33f5a43d00630982840568e85e\]
 dev\_attr\_store drivers/base/core.c:2074
 sysfs\_kf\_write fs/sysfs/file.c:139
 kernfs\_fop\_write\_iter fs/kernfs/file.c:300
 new\_sync\_write fs/read\_write.c:508 (discriminator 4)
 vfs\_write fs/read\_write.c:594
 ksys\_write fs/read\_write.c:648
 do\_syscall\_64 arch/x86/entry/common.c:50
 entry\_SYSCALL\_64\_after\_hwframe arch/x86/entry/entry\_64.S:113

Add error check in devm\_regmap\_init\_encx24j600 to avoid this situation.

## Affected and fixed versions

- Linux: \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 66358471fa75a713fd76bc8a4bd74cb14cd50a4f; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< f043fac1133a6c5ef960a8422c0f6dd711dee462; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< fddc7f678d7fb93caa0d7bc512f968ff1e2bddbc; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 5e5494e6fc8a29c927e0478bec4a078a40da8901; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 4c2eb80fc90b05559ce6ed1b8dfb2348420b5644; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< e19c10d6e07c59c96e90fe053a72683ad8b0397e; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 322c0e53496309e634d9db7349678eaad1d25b55; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< f03dca0c9e2297c84a018e306f8a9cd534ee4287 (cvelist)
- Linux: 4.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47440. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47440.md
Affected: Linux >= 04fbfce7a222327b97ca165294ef19f0faa45960, < 66358471fa75a713fd76bc8a4bd74cb14cd50a4f; >= 04fbfce7a222327b97ca165294ef19f0faa45960, < f043fac1133a6c5ef960a8422c0f6dd711dee462; >= 04fbfce7a222327b97ca165294ef19f0faa45960, < fddc7f678d7fb93caa0d7bc512f968ff1e2bddbc; >= 04fbfce7a222327b97ca165…
Fixed in: Linux 66358471fa75a713fd76bc8a4bd74cb14cd50a4f, Linux 5e5494e6fc8a29c927e0478bec4a078a40da8901, Linux 4c2eb80fc90b05559ce6ed1b8dfb2348420b5644, Linux 322c0e53496309e634d9db7349678eaad1d25b55

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47440 being exploited?

There is no confirmed exploitation: CVE-2021-47440 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47440?

Low: CVSS 2.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47440?

Linux \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 66358471fa75a713fd76bc8a4bd74cb14cd50a4f; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< f043fac1133a6c5ef960a8422c0f6dd711dee462; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< fddc7f678d7fb93caa0d7bc512f968ff1e2bddbc; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 5e5494e6fc8a29c927e0478bec4a078a40da8901; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 4c2eb80fc90b05559ce6ed1b8dfb2348420b5644; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< e19c10d6e07c59c96e90fe053a72683ad8b0397e; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< 322c0e53496309e634d9db7349678eaad1d25b55; \>= 04fbfce7a222327b97ca165294ef19f0faa45960, \< f03dca0c9e2297c84a018e306f8a9cd534ee4287; Linux 4.4.

### Is there a fix for CVE-2021-47440?

Yes. Fixed in Linux 66358471fa75a713fd76bc8a4bd74cb14cd50a4f, Linux 5e5494e6fc8a29c927e0478bec4a078a40da8901, Linux 4c2eb80fc90b05559ce6ed1b8dfb2348420b5644, Linux 322c0e53496309e634d9db7349678eaad1d25b55. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47440?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/66358471fa75a713fd76bc8a4bd74cb14cd50a4f>
- patch: <https://git.kernel.org/stable/c/f043fac1133a6c5ef960a8422c0f6dd711dee462>
- patch: <https://git.kernel.org/stable/c/fddc7f678d7fb93caa0d7bc512f968ff1e2bddbc>
- patch: <https://git.kernel.org/stable/c/5e5494e6fc8a29c927e0478bec4a078a40da8901>
- patch: <https://git.kernel.org/stable/c/4c2eb80fc90b05559ce6ed1b8dfb2348420b5644>
- patch: <https://git.kernel.org/stable/c/e19c10d6e07c59c96e90fe053a72683ad8b0397e>
- patch: <https://git.kernel.org/stable/c/322c0e53496309e634d9db7349678eaad1d25b55>
- patch: <https://git.kernel.org/stable/c/f03dca0c9e2297c84a018e306f8a9cd534ee4287>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47440>

HTML: <https://flawdb.com/CVE-2021-47440> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47440>
