# CVE-2025-40153: mm: hugetlb: avoid soft lockup when mprotect to large memory area

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-11-12T10:23:28.201Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 30498c44c2a0b20f6833ed7d8fc3df901507f760; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 5783485ab2be06be5312b26c8793526edc09123d; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 547e123e9d342a44c756446640ed847a8aeec611; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 957faf9582f92bb2be8ebe4ab6aa1c2bc71d9859; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 964598e6f70a1be9fe675280bf16b4f96b0a6809; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 4975c975ed9457a77953a26aeef85fdba7cf5498; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< c6096f3947f68f96defedb8764b3b1ca4cf3469f; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< f52ce0ea90c83a28904c7cc203a70e6434adfecb
- Anyone running Linux 2.6.17

## Description

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

mm: hugetlb: avoid soft lockup when mprotect to large memory area

When calling mprotect() to a large hugetlb memory area in our customer's
workload (~300GB hugetlb memory), soft lockup was observed:

watchdog: BUG: soft lockup - CPU\#98 stuck for 23s! \[t2\_new\_sysv:126916\]

CPU: 98 PID: 126916 Comm: t2\_new\_sysv Kdump: loaded Not tainted 6.17-rc7
Hardware name: GIGACOMPUTING R2A3-T40-AAV1/Jefferson CIO, BIOS 5.4.4.1 07/15/2025
pstate: 20400009 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : mte\_clear\_page\_tags+0x14/0x24
lr : mte\_sync\_tags+0x1c0/0x240
sp : ffff80003150bb80
x29: ffff80003150bb80 x28: ffff00739e9705a8 x27: 0000ffd2d6a00000
x26: 0000ff8e4bc00000 x25: 00e80046cde00f45 x24: 0000000000022458
x23: 0000000000000000 x22: 0000000000000004 x21: 000000011b380000
x20: ffff000000000000 x19: 000000011b379f40 x18: 0000000000000000
x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000000 x9 : ffffc875e0aa5e2c
x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : fffffc01ce7a5c00 x4 : 00000000046cde00 x3 : fffffc0000000000
x2 : 0000000000000004 x1 : 0000000000000040 x0 : ffff0046cde7c000

Call trace:
  mte\_clear\_page\_tags+0x14/0x24
  set\_huge\_pte\_at+0x25c/0x280
  hugetlb\_change\_protection+0x220/0x430
  change\_protection+0x5c/0x8c
  mprotect\_fixup+0x10c/0x294
  do\_mprotect\_pkey.constprop.0+0x2e0/0x3d4
  \_\_arm64\_sys\_mprotect+0x24/0x44
  invoke\_syscall+0x50/0x160
  el0\_svc\_common+0x48/0x144
  do\_el0\_svc+0x30/0xe0
  el0\_svc+0x30/0xf0
  el0t\_64\_sync\_handler+0xc4/0x148
  el0t\_64\_sync+0x1a4/0x1a8

Soft lockup is not triggered with THP or base page because there is
cond\_resched() called for each PMD size.

Although the soft lockup was triggered by MTE, it should be not MTE
specific.  The other processing which takes long time in the loop may
trigger soft lockup too.

So add cond\_resched() for hugetlb to avoid soft lockup.

## Affected and fixed versions

- Linux: \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 30498c44c2a0b20f6833ed7d8fc3df901507f760; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 5783485ab2be06be5312b26c8793526edc09123d; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 547e123e9d342a44c756446640ed847a8aeec611; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 957faf9582f92bb2be8ebe4ab6aa1c2bc71d9859; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 964598e6f70a1be9fe675280bf16b4f96b0a6809; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 4975c975ed9457a77953a26aeef85fdba7cf5498; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< c6096f3947f68f96defedb8764b3b1ca4cf3469f; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< f52ce0ea90c83a28904c7cc203a70e6434adfecb (cvelist)
- Linux: 2.6.17 (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-2025-40153. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40153.md
Affected: Linux >= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, < 30498c44c2a0b20f6833ed7d8fc3df901507f760; >= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, < 5783485ab2be06be5312b26c8793526edc09123d; >= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, < 547e123e9d342a44c756446640ed847a8aeec611; >= 8f860591ffb29738cf5539b…
Fixed in: Linux 30498c44c2a0b20f6833ed7d8fc3df901507f760, Linux 5783485ab2be06be5312b26c8793526edc09123d, Linux 547e123e9d342a44c756446640ed847a8aeec611, Linux 957faf9582f92bb2be8ebe4ab6aa1c2bc71d9859, Linux 964598e6f70a1be9fe675280bf16b4f96b0a6809, Linux 4975c975ed9457a77953a26aeef85fdba7cf5498

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-2025-40153 being exploited?

There is no confirmed exploitation: CVE-2025-40153 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-40153?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40153?

Linux \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 30498c44c2a0b20f6833ed7d8fc3df901507f760; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 5783485ab2be06be5312b26c8793526edc09123d; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 547e123e9d342a44c756446640ed847a8aeec611; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 957faf9582f92bb2be8ebe4ab6aa1c2bc71d9859; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 964598e6f70a1be9fe675280bf16b4f96b0a6809; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< 4975c975ed9457a77953a26aeef85fdba7cf5498; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< c6096f3947f68f96defedb8764b3b1ca4cf3469f; \>= 8f860591ffb29738cf5539b6fbf27f50dcdeb380, \< f52ce0ea90c83a28904c7cc203a70e6434adfecb; Linux 2.6.17.

### Is there a fix for CVE-2025-40153?

Yes. Fixed in Linux 30498c44c2a0b20f6833ed7d8fc3df901507f760, Linux 5783485ab2be06be5312b26c8793526edc09123d, Linux 547e123e9d342a44c756446640ed847a8aeec611, Linux 957faf9582f92bb2be8ebe4ab6aa1c2bc71d9859, Linux 964598e6f70a1be9fe675280bf16b4f96b0a6809, Linux 4975c975ed9457a77953a26aeef85fdba7cf5498. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40153?

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

- other: <https://git.kernel.org/stable/c/30498c44c2a0b20f6833ed7d8fc3df901507f760>
- other: <https://git.kernel.org/stable/c/5783485ab2be06be5312b26c8793526edc09123d>
- other: <https://git.kernel.org/stable/c/547e123e9d342a44c756446640ed847a8aeec611>
- other: <https://git.kernel.org/stable/c/957faf9582f92bb2be8ebe4ab6aa1c2bc71d9859>
- other: <https://git.kernel.org/stable/c/964598e6f70a1be9fe675280bf16b4f96b0a6809>
- other: <https://git.kernel.org/stable/c/4975c975ed9457a77953a26aeef85fdba7cf5498>
- other: <https://git.kernel.org/stable/c/c6096f3947f68f96defedb8764b3b1ca4cf3469f>
- other: <https://git.kernel.org/stable/c/f52ce0ea90c83a28904c7cc203a70e6434adfecb>

## 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-2025-40153>

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