CVE-2021-47635
published high CVSS 3.1 · 7.8ubifs: Fix to add refcount once page is set private
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < c34ae24a2590fee96a3a7735ba2fa6cc52306221 · 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 4f75bab98565afd4f905059c56ec4caba88a7eec · 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 5aaa2c0f0052b02c4a982993d4c5bb68fb7cbe22 · 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < fbeb2139eed65e929ce806c6468e6601ade01b1b · 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 3b67db8a6ca83e6ff90b756d3da0c966f61cd37b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.27 (affected) · 0 to < 2.6.27 (unaffected · semver) · 5.10.110 through 5.10.* (unaffected · semver) · 5.15.33 through 5.15.* (unaffected · semver) · 5.16.19 through 5.16.* (unaffected · semver) · 5.17.2 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP4 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | cluster-md-kmp-defaultppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | cluster-md-kmp-defaults390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP4 | dlm-kmp-defaultaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | dlm-kmp-defaultppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | dlm-kmp-defaults390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | dlm-kmp-defaultx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | gfs2-kmp-defaultaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | gfs2-kmp-defaultppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | gfs2-kmp-defaults390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | gfs2-kmp-defaultx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-64kbaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-64kb-develaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-defaultaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-defaultppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-defaults390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-defaultx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-baseaarch64 | Advisory build | 5.14.21-150400.24.158.1.150400.24.78.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-baseppc64le | Advisory build | 5.14.21-150400.24.158.1.150400.24.78.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-basex86_64 | Advisory build | 5.14.21-150400.24.158.1.150400.24.78.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-develaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-develppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-devels390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-develx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-livepatchppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-livepatchs390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-livepatchx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-livepatch-develppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-livepatch-devels390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-default-livepatch-develx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-develnoarch | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-docsnoarch | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_158-defaultppc64le | Advisory build | 1-150400.9.3.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_158-defaults390x | Advisory build | 1-150400.9.3.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_158-defaultx86_64 | Advisory build | 1-150400.9.3.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-macrosnoarch | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-obs-buildaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-obs-buildppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-obs-builds390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-obs-buildx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-sourcenoarch | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-symsaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-symsppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-symss390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-symsx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-zfcpdumps390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | ocfs2-kmp-defaultaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | ocfs2-kmp-defaultppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | ocfs2-kmp-defaults390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | ocfs2-kmp-defaultx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | reiserfs-kmp-defaultaarch64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | reiserfs-kmp-defaultppc64le | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | reiserfs-kmp-defaults390x | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP4 | reiserfs-kmp-defaultx86_64 | Advisory build | 5.14.21-150400.24.158.1 | SUSE-SU-2025:1027-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-64kbaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-64kb-develaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-baseaarch64 | Advisory build | 5.14.21-150500.55.100.1.150500.6.47.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-baseppc64le | Advisory build | 5.14.21-150500.55.100.1.150500.6.47.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-basex86_64 | Advisory build | 5.14.21-150500.55.100.1.150500.6.47.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-develaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-develppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-devels390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-develx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatchppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatchs390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatchx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatch-develppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatch-devels390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatch-develx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-develnoarch | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-docsnoarch | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_100-defaultppc64le | Advisory build | 1-150500.11.3.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_100-defaults390x | Advisory build | 1-150500.11.3.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_100-defaultx86_64 | Advisory build | 1-150500.11.3.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-macrosnoarch | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-buildaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-buildppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-builds390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-buildx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-sourcenoarch | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symsaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symsppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symss390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: ubifs: Fix to add refcount once page is set private MM defined the rule [1] very clearly that once page was set with PG_private flag, we should increment the refcount in that page, also main flows like pageout(), migrate_page() will assume there is one additional page reference count if page_has_private() returns true. Otherwise, we may get a BUG in page migration: page:0000000080d05b9d refcount:-1 mapcount:0 mapping:000000005f4d82a8 index:0xe2 pfn:0x14c12 aops:ubifs_file_address_operations [ubifs] ino:8f1 dentry name:"f30e" flags: 0x1fffff80002405(locked|uptodate|owner_priv_1|private|node=0| zone=1|lastcpupid=0x1fffff) page dumped because: VM_BUG_ON_PAGE(page_count(page) != 0) ------------[ cut here ]------------ kernel BUG at include/linux/page_ref.h:184! invalid opcode: 0000 [#1] SMP CPU: 3 PID: 38 Comm: kcompactd0 Not tainted 5.15.0-rc5 RIP: 0010:migrate_page_move_mapping+0xac3/0xe70 Call Trace: ubifs_migrate_page+0x22/0xc0 [ubifs] move_to_new_page+0xb4/0x600 migrate_pages+0x1523/0x1cc0 compact_zone+0x8c5/0x14b0 kcompactd+0x2bc/0x560 kthread+0x18c/0x1e0 ret_from_fork+0x1f/0x30 Before the time, we should make clean a concept, what does refcount means in page gotten from grab_cache_page_write_begin(). There are 2 situations: Situation 1: refcount is 3, page is created by __page_cache_alloc. TYPE_A - the write process is using this page TYPE_B - page is assigned to one certain mapping by calling __add_to_page_cache_locked() TYPE_C - page is added into pagevec list corresponding current cpu by calling lru_cache_add() Situation 2: refcount is 2, page is gotten from the mapping's tree TYPE_B - page has been assigned to one certain mapping TYPE_A - the write process is using this page (by calling page_cache_get_speculative()) Filesystem releases one refcount by calling put_page() in xxx_write_end(), the released refcount corresponds to TYPE_A (write task is using it). If there are any processes using a page, page migration process will skip the page by judging whether expected_page_refs() equals to page refcount. The BUG is caused by following process: PA(cpu 0) kcompactd(cpu 1) compact_zone ubifs_write_begin page_a = grab_cache_page_write_begin add_to_page_cache_lru lru_cache_add pagevec_add // put page into cpu 0's pagevec (refcnf = 3, for page creation process) ubifs_write_end SetPagePrivate(page_a) // doesn't increase page count ! unlock_page(page_a) put_page(page_a) // refcnt = 2 [...] PB(cpu 0) filemap_read filemap_get_pages add_to_page_cache_lru lru_cache_add __pagevec_lru_add // traverse all pages in cpu 0's pagevec __pagevec_lru_add_fn SetPageLRU(page_a) isolate_migratepages isolate_migratepages_block get_page_unless_zero(page_a) // refcnt = 3 list_add(page_a, from_list) migrate_pages(from_list) __unmap_and_move move_to_new_page ubifs_migrate_page(page_a) migrate_page_move_mapping expected_page_refs get 3 (migration[1] + mapping[1] + private[1]) release_pages put_page_testzero(page_a) // refcnt = 3 page_ref_freeze // refcnt = 0 page_ref_dec_and_test(0 - 1 = -1) page_ref_unfreeze VM_BUG_ON_PAGE(-1 != 0, page) UBIFS doesn't increase the page refcount after setting private flag, which leads to page migration task believes the page is not used by any other processes, so the page is migrated. This causes concurrent accessing on page refcount between put_page() called by other process(eg. read process calls lru_cache_add) and page_ref_unfreeze() called by mi ---truncated---
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached through local VFS writes or mmap write faults on an already-mounted UBIFS volume (write → generic_perform_write → ubifs_write_begin/end, or ubifs_vm_page_mkwrite), not via a network protocol handler. AC:L - The attacker controls both I/O sides of the race (dirtying pages via write/mmap and draining pagevecs via concurrent reads) and can induce memory pressure to trigger compaction/migration; a public reproducer exists, so success does not depend on conditions outside attacker influence. PR:L - Mounting UBIFS requires CAP_SYS_ADMIN, but on typical embedded/OpenWrt/IoT deployments UBIFS is already mounted; any unprivileged user who can write files on that volume can hit the vulnerable SetPagePrivate paths. UI:N - No separate victim action is required once UBIFS is mounted as the system filesystem; the attacker triggers the bug by writing and reading their own files while stressing memory. S:U - Impact is confined to the local kernel's memory-management authority (page cache/refcount corruption and possible privilege escalation on the same host), with no VM/IOMMU boundary crossing. C:H - Missing get_page on PG_private lets migration freeze a page while a concurrent put races on the refcount, corrupting page lifetime and enabling use-after-free of page-cache pages, which yields an arbitrary read primitive. I:H - The same page refcount corruption/UAF during migrate_page_move_mapping enables reuse of freed pages and control-flow hijacking, so integrity impact is high under the UAF/memory-corruption guidance. A:H - The demonstrated failure is a kernel BUG in page migration (and without DEBUG_VM, corrupted refcounts still lead to crashes/oopses), so availability impact is high.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < c34ae24a2590fee96a3a7735ba2fa6cc52306221 (affected · git)1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 4f75bab98565afd4f905059c56ec4caba88a7eec (affected · git)1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 5aaa2c0f0052b02c4a982993d4c5bb68fb7cbe22 (affected · git)1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < fbeb2139eed65e929ce806c6468e6601ade01b1b (affected · git)1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 3b67db8a6ca83e6ff90b756d3da0c966f61cd37b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.27 (affected)0 to < 2.6.27 (unaffected · semver)5.10.110 through 5.10.* (unaffected · semver)5.15.33 through 5.15.* (unaffected · semver)5.16.19 through 5.16.* (unaffected · semver)5.17.2 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/3b67db8a6ca83e6ff90b756d3da0c966f61cd37b
- https://git.kernel.org/stable/c/4f75bab98565afd4f905059c56ec4caba88a7eec
- https://git.kernel.org/stable/c/5aaa2c0f0052b02c4a982993d4c5bb68fb7cbe22
- https://git.kernel.org/stable/c/c34ae24a2590fee96a3a7735ba2fa6cc52306221
- https://git.kernel.org/stable/c/fbeb2139eed65e929ce806c6468e6601ade01b1b
Provider assertions
1Linux · cna
ubifs: Fix to add refcount once page is set private
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f8ed635d2fe14bbc47c029d300637fd1736238c6c93427d245bae7779f973a8d
- Ingested
- 23 Sep 2026, 07:57:11 UTC
- Source record
- Official CVE record