In the Linux kernel, the following vulnerability has been resolved:mm/gup: handle NULL pages in unpin_user_pages()The recent addition of "pofs" (pages or folios) handling to gup has aflaw: it assumes that unpin_user_pages() handles NULL pages in the pages**array. That's not the case, as I discovered when I ran on a newconfiguration on my test machine.Fix this by skipping NULL pages in unpin_user_pages(), just likeunpin_folios() already does.Details: when booting on x86 with "numa=fake=2 movablecore=4G" on Linux6.12, and running this: tools/testing/selftests/mm/gup_longterm...I get the following crash:BUG: kernel NULL pointer dereference, address: 0000000000000008RIP: 0010:sanity_check_pinned_pages+0x3a/0x2d0...Call Trace:
No PoCs from references.
- https://github.com/cku-heise/euvd-api-doc