CVE-2025-21845
mtd: spi-nor: sst: Fix SST write failure
Mitigation
- Upgrade Linux to 539bd20352832b9244238a055eb169ccf1c41ff6 or later.
Who should check
- Anyone running Linux >= b925a5787b6e1d05731eb2dcc31dcaafc40ec2b6, < f791837015a0d20f584d0ed368393f119a00018f; >= b7cd63d13faef7ca5cf31ffa45ebf08829e4c9a7, < f7c14993dc2f1eca661975c0ff90a6e2098ecd41; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < bb1accc7e0f688886f0c634f2e878b8ac4ee6a58; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < 9553391f32f8c43e12fc7c04e1035160b5ea20bf; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < 539bd20352832b9244238a055eb169ccf1c41ff6
- Anyone running Linux 6.12
Vulnerability facts
- Affected
- Linux >= b925a5787b6e1d05731eb2dcc31dcaafc40ec2b6, < f791837015a0d20f584d0ed368393f119a00018f; >= b7cd63d13faef7ca5cf31ffa45ebf08829e4c9a7, < f7c14993dc2f1eca661975c0ff90a6e2098ecd41; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < bb1accc7e0f688886f0c634f2e878b8ac4ee6a58; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < 9553391f32f8c43e12fc7c04e1035160b5ea20bf; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < 539bd20352832b9244238a055eb169ccf1c41ff6; Linux 6.12
- Fixed in
- Linux 9553391f32f8c43e12fc7c04e1035160b5ea20bf, Linux 539bd20352832b9244238a055eb169ccf1c41ff6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: mtd: spi-nor: sst: Fix SST write failure 'commit 18bcb4aa54ea ("mtd: spi-nor: sst: Factor out common write operation to `sst_nor_write_data()`")' introduced a bug where only one byte of data is written, regardless of the number of bytes passed to sst_nor_write_data(), causing a kernel crash during the write operation. Ensure the correct number of bytes are written as passed to sst_nor_write_data(). Call trace: [ 57.400180] ------------[ cut here ]------------ [ 57.404842] While writing 2 byte written 1 bytes [ 57.409493] WARNING: CPU: 0 PID: 737 at drivers/mtd/spi-nor/sst.c:187 sst_nor_write_data+0x6c/0x74 [ 57.418464] Modules linked in: [ 57.421517] CPU: 0 UID: 0 PID: 737 Comm: mtd_debug Not tainted 6.12.0-g5ad04afd91f9 #30 [ 57.429517] Hardware name: Xilinx Versal A2197 Processor board revA - x-prc-02 revA (DT) [ 57.437600] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 57.444557] pc : sst_nor_write_data+0x6c/0x74 [ 57.448911] lr : sst_nor_write_data+0x6c/0x74 [ 57.453264] sp : ffff80008232bb40 [ 57.456570] x29: ffff80008232bb40 x28: 0000000000010000 x27: 0000000000000001 [ 57.463708] x26: 000000000000ffff x25: 0000000000000000 x24: 0000000000000000 [ 57.470843] x23: 0000000000010000 x22: ffff80008232bbf0 x21: ffff000816230000 [ 57.477978] x20: ffff0008056c0080 x19: 0000000000000002 x18: 0000000000000006 [ 57.485112] x17: 0000000000000000 x16: 0000000000000000 x15: ffff80008232b580 [ 57.492246] x14: 0000000000000000 x13: ffff8000816d1530 x12: 00000000000004a4 [ 57.499380] x11: 000000000000018c x10: ffff8000816fd530 x9 : ffff8000816d1530 [ 57.506515] x8 : 00000000fffff7ff x7 : ffff8000816fd530 x6 : 0000000000000001 [ 57.513649] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000 [ 57.520782] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0008049b0000 [ 57.527916] Call trace: [ 57.530354] sst_nor_write_data+0x6c/0x74 [ 57.534361] sst_nor_write+0xb4/0x18c [ 57.538019] mtd_write_oob_std+0x7c/0x88 [ 57.541941] mtd_write_oob+0x70/0xbc [ 57.545511] mtd_write+0x68/0xa8 [ 57.548733] mtdchar_write+0x10c/0x290 [ 57.552477] vfs_write+0xb4/0x3a8 [ 57.555791] ksys_write+0x74/0x10c [ 57.559189] __arm64_sys_write+0x1c/0x28 [ 57.563109] invoke_syscall+0x54/0x11c [ 57.566856] el0_svc_common.constprop.0+0xc0/0xe0 [ 57.571557] do_el0_svc+0x1c/0x28 [ 57.574868] el0_svc+0x30/0xcc [ 57.577921] el0t_64_sync_handler+0x120/0x12c [ 57.582276] el0t_64_sync+0x190/0x194 [ 57.585933] ---[ end trace 0000000000000000 ]--- [pratyush@kernel.org: add Cc stable tag]
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= b925a5787b6e1d05731eb2dcc31dcaafc40ec2b6, < f791837015a0d20f584d0ed368393f119a00018f; >= b7cd63d13faef7ca5cf31ffa45ebf08829e4c9a7, < f7c14993dc2f1eca661975c0ff90a6e2098ecd41; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < bb1accc7e0f688886f0c634f2e878b8ac4ee6a58; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < 9553391f32f8c43e12fc7c04e1035160b5ea20bf; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < 539bd20352832b9244238a055eb169ccf1c41ff6 | — | cvelist |
| Linux | 6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21845. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21845.md Affected: Linux >= b925a5787b6e1d05731eb2dcc31dcaafc40ec2b6, < f791837015a0d20f584d0ed368393f119a00018f; >= b7cd63d13faef7ca5cf31ffa45ebf08829e4c9a7, < f7c14993dc2f1eca661975c0ff90a6e2098ecd41; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < bb1accc7e0f688886f0c634f2e878b8ac4ee6a58; >= 18bcb4aa54eab75dce41e5c… Fixed in: Linux 9553391f32f8c43e12fc7c04e1035160b5ea20bf, Linux 539bd20352832b9244238a055eb169ccf1c41ff6 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.
References
Patches
FAQ
Is CVE-2025-21845 being exploited?
There is no confirmed exploitation: CVE-2025-21845 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-2025-21845?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21845?
Linux >= b925a5787b6e1d05731eb2dcc31dcaafc40ec2b6, < f791837015a0d20f584d0ed368393f119a00018f; >= b7cd63d13faef7ca5cf31ffa45ebf08829e4c9a7, < f7c14993dc2f1eca661975c0ff90a6e2098ecd41; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < bb1accc7e0f688886f0c634f2e878b8ac4ee6a58; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < 9553391f32f8c43e12fc7c04e1035160b5ea20bf; >= 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79, < 539bd20352832b9244238a055eb169ccf1c41ff6; Linux 6.12.
Is there a fix for CVE-2025-21845?
Yes. Fixed in Linux 9553391f32f8c43e12fc7c04e1035160b5ea20bf, Linux 539bd20352832b9244238a055eb169ccf1c41ff6. Upgrade Linux to 539bd20352832b9244238a055eb169ccf1c41ff6 or later.
How do I check if I'm affected by CVE-2025-21845?
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.