CVE-2025-38442

Source
https://cve.org/CVERecord?id=CVE-2025-38442
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38442.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-38442
Downstream
Published
2025-07-25T15:27:26.009Z
Modified
2026-04-02T12:47:58.743868Z
Summary
block: reject bs > ps block devices when THP is disabled
Details

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

block: reject bs > ps block devices when THP is disabled

If THP is disabled and when a block device with logical block size > page size is present, the following null ptr deref panic happens during boot:

[ [13.2 mK AOSAN: null-ptr-deref in range [0x0000000000000000-0x0000000000K0 0 0[07] [ 13.017749] RIP: 0010:createemptybuffers+0x3b/0x380 <snip> [ 13.025448] Call Trace: [ 13.025692] <TASK> [ 13.025895] blockreadfull_folio+0x610/0x780 [ 13.026379] ? __pfxblkdevget_block+0x10/0x10 [ 13.027008] ? __foliobatchaddandmove+0x1fa/0x2b0 [ 13.027548] ? __pfxblkdevread_folio+0x10/0x10 [ 13.028080] filemapreadfolio+0x9b/0x200 [ 13.028526] ? __pfxfilemapread_folio+0x10/0x10 [ 13.029030] ? __filemapgetfolio+0x43/0x620 [ 13.029497] do_readcachefolio+0x155/0x3b0 [ 13.029962] ? __pfxblkdevread_folio+0x10/0x10 [ 13.030381] readpartsector+0xb7/0x2a0 [ 13.030805] readlba+0x174/0x2c0 <snip> [ 13.045348] nvmescanns+0x684/0x850 [nvmecore] [ 13.045858] ? __pfxnvmescanns+0x10/0x10 [nvmecore] [ 13.046414] ? rawspin_unlock+0x15/0x40 [ 13.046843] ? __switchto+0x523/0x10a0 [ 13.047253] ? kvmclockgetcycles+0x14/0x30 [ 13.047742] ? _pfxnvmescannsasync+0x10/0x10 [nvmecore] [ 13.048353] asyncrunentryfn+0x96/0x4f0 [ 13.048787] processonework+0x667/0x10a0 [ 13.049219] workerthread+0x63c/0xf60

As large folio support depends on THP, only allow bs > ps block devices if THP is enabled.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38442.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
47dd67532303803a87f43195e088b3b4bcf0454d
Fixed
b025d81b96bfe8a62b6e3e6ac776608206ccbf6d
Fixed
4cdf1bdd45ac78a088773722f009883af30ad318

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38442.json"