총 162,836건
CVE-2026-99863
번역 확인 필요2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: fs/ntfs3: do_action의 CreateAttribute에서 record_size에 대한 asize 경계 설정 Do_action()의 CreateAttribute 케이스(fslog.c:3286)에서 attr2가 온-디스크 로그 레코드로 가리키고 있으며 asize = le32_to_cpu(attr2->size)인 값은 mount 시 공격자에 의해 제어됩니다. 경계는 로그 레코드 자체에 대해 asize를 한정하며, Add2Ptr(attr2, asize) > Add2Ptr(lrh, rec_len) 여기서 rec_len은 클라이언트 데이터 길이이며, 별도로 dlen을 MFT 레코드에 대해 경계합니다. asize가 record_size에 대해 한정되지 않지만, 다음의 세 쓰기는 모두 kmalloc(sbi->record_size)로 할당된 rec로 들어갑니다(record.c:105): memmove(Add2Ptr(attr, asize), attr, used - roff); memcpy(attr, attr2, asize); rec->used = cpu_to_le32(used + asize); record_size가 0x400이고 roff가 0x38, used가 0x160이며 asize가 0x800일 때, memcpy는 rec + 0x38에 2048바이트를 쓰게 되며, 할당 이후로 0x438 바이트를 초과합니다. 그 결과 rec->used는 0x960으로 남아 있습니다. 여기서는 dlen이 0x18이므로 기존 dlen 검사로는 복사 크기에 대한 경계가 설정되지 않습니다. 동일한 재생 경로의 비재생 경로는 이미 이를 거부합니다. mi_insert_attr()도 동일한 삽입을 수행하고(record.c:488)에서 다음과 같이 시작합니다: if (used + asize > sbi->record_size) return NULL; 같은 경계를 적용하되 이웃 절의 빼기 형태로 표현합니다. used <= record_size는 check_file_record()가 이를 검증하고(fslog.c:2826) 이 레코드에서 fslog.c:3172에서 호출되므로, used + asize의 경계는 두 복사 모두를 한정합니다. :Sibling WriteEndOfFileRecordSegment 케이스도 fslog.c:3277에서 record_size에 대해 동일한 경계 검사를 수행합니다. KASAN에서 v7.2-rc5를 마운트하여 재현됨: BUG: KASAN: slab-out-of-bounds in do_action.isra.0+0x41f6/0x83a0 Write of size 2048 at addr ffff888005c74838 by task mount/69 CPU: 0 UID: 0 PID: 69 Comm: mount Not tainted 7.2.0-rc5-00300-g8ba098e6b6ff #2 Call Trace: kasan_report+0xce/0x100 kasan_check_range+0x105/0x1b0 __asan_memcpy+0x3c/0x60 do_action.isra.0+0x41f6/0x83a0 log_replay+0x920a/0xd300 ntfs_loadlog_and_replay+0x3ef/0x510 ntfs_fill_super+0x1d23/0x4550 The buggy address belongs to the object at ffff888005c74800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 56 bytes inside of allocated 1024-byte region [ffff888005c74800, ffff888005c74c00)
CVE-2026-99862
번역 확인 필요2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: fs/ntfs3: do_action의 DeleteAttribute 케이스에서 rec->used에 대해 asize 경계 설정을 적용 Do_action()의 DeleteAttribute 케이스(fslog.c:3316)에서 attr은 Add2Ptr(rec, roff)이며 roff는 디스크에 저장된 lrh->record_off에서 가져옵니다, 그리고 asize = le32_to_cpu(attr->size) 값은 MFT 레코드에서 직접 읽혀집니다: asize = le32_to_cpu(attr->size); used = le32_to_cpu(rec->used); if (!check_if_attr(rec, lrh)) goto dirty_vol; ... memmove(attr, Add2Ptr(attr, asize), used - asize - roff); check_if_attr() (fslog.c:2869)은 rec->attr_off에서 속성 체인을 따라가면서 o == ro를 반환합니다. 그 루프는 ATTR_END에서 종료되므로 ro는 ATTR_END 마커의 오프셋과 동일할 수 있는데, 이것이 CreateAttribute가 레코드에 추가하는 방식과 정확히 일치합니다. 그러나 check_file_record()의 워크(fslog.c:2831)도 ATTR_END에서 중지하므로 check_attr()는 그 바이트들을 절대 검사하지 않습니다. roff가 ATTR_END 오프셋인 경우, 검증되지 않은 바이트들이 attr->size로 읽히고, asize로 인해 used - asize - roff가 언더플로우를 일으킵니다. 읽기 자체도 경계가 정해지지 않았습니다: roff는 u16이고 attr->size는 fslog.c:3317에서 역참조되기 전에 check_if_attr()가 roff를 제약하기 전이므로 레코드 크기 객체의 ~64K 만큼 벗어나 있을 수 있습니다. Commit 0ca0485e4b2e ("fs/ntfs3: validate rec->used in journal-replay file record check")가 fslog.c:2844에서 if (used < PtrOffset(rec, attr) + sizeof(attr->type)) return false; 그리고 changelog는 이것을 정확히 이 memmove로 명명합니다. 그것은 rec->used를 ATTR_END 오프셋으로 경계합니다; asize를 경계하지 않습니다. 레코드 크기가 0x400이고, attr_off가 0x38이며, ATTR_END에서의 유효한 세 속성 체인이 0x158에 있으며 used가 0x160인 경우, 0x15c의 4바이트가 0x100을 읽는 레코드는 used - asize - roff = 0x160 - 0x100 - 0x158 = 0xffffff08 즉 소스와 대상이 모두 레코드 끝을 넘겨버리는 약 4 GiB의 memmove가 발생하고, 이 객체(kmalloc(sbi->record_size))를 할당합니다(record.c:105). 비재생 경로에서도 이미 이를 거부합니다. mi_remove_attr()는 동일한 제거를 수행하고(record.c:548) 다음과 같이 시작합니다: if (aoff + asize > used) return false; 같은 경계 조건을 적용하고 asize를 읽는 위치를 check_if_attr() 이후로 옮겨 헤더가 레코드 내부에 있음이 확인된 후 역참조되도록 합니다. Requiring roff + SIZEOF_RESIDENT <= used는 ATTR_END 오프셋을 거부하지 않고도 실제 속성으로 가질 수 있는 헤더를 허용하지 않도록 합니다: 속성에 대해 걸어가며 검증된 경우, roff + asize <= off(ATTR_END) <= 사용된 바이트에서 4를 뺀 값이며, ATTR_END를 이름으로 갖는 속성의 DeleteAttribute 레코드는 전체 레지스터 헤더를 담을 수 있습니다. 따라서 roff + SIZEOF_RESIDENT <= roff + asize <= used - 4로 좁힙니다. check_attr() 자체는 asize에 대한 하한을 부여하지 않으므로 정교하게 만든 asize 하위 헤더도 첫 번째 검사에서 통과될 수 있습니다; 두 번째 검사에서 이를 경계하고 memmove가 레코드 내부를 벗어나지 않도록 합니다. 이 문제는 v7.2-rc5에서 AR1으로 재현되며, 이미 0ca0485e4b2e를 포함하고 있습니다. 이미지는 하나의 MFT 레코드의 4바이트가 바뀐 일반적인 mkfs.ntfs 볼륨이며, crafty한 $LogFile을 포함합니다: BUG: KASAN: slab-out-of-bounds in do_action.isra.0+0x3211/0x83c0 ffff888002423258 주소에서 크기 4294967048 읽기, 작업 mount/66에 의해 CPU: 1 UID: 0 PID: 66 Comm: mount.. 할당된 메모리: __kasan_kmalloc+0x8f/0xa0 __kmalloc_noprof+0x1b4/0x460 mi_init+0x81/0x110 mi_get+0x6a/0x220 do_action.isra.0+0x1dbf/0x83c0 log_replay+0x920a/0xd300 ntfs_loadlog_and_replay+0x3ef/0x510 ntfs_fill_super+0x1d23/0x4550 buggy 주소는 ffff88 객체에 속합니다. ---truncated---
CVE-2026-99861
2026년 11월 30일리눅스 커널의 다음 취약점이 해결되었습니다: ntfs3: 정렬에 대한 매핑 페어 경계 검사 수정 UpdateMappingPairs 동작에서 확장 검사 는 비정렬된 새 속성 크기와 사용 가능한 레코드 공간을 비교합니다. 새 크기는 매핑 페어가 업데이트되기 전에 8바이트 경계로 정렬되므로, 검사에서 필요한 공간을 최대 7바이트까지 과소 추정할 수 있습니다. 확장 검사에 정렬된 크기를 사용하여 이후 업데이트가 사용 가능한 레코드 공간을 초과하지 않도록 보장합니다.
CVE-2026-99860
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: inet: frags: prevent acceptance of partially authenticated reassembly A reassembled skb retains the secpath from its first fragment, which makes it possible for the final policy check to accept bytes that were not covered by the transform recorded on the skb. This can affect IPsec tunnel traffic, including AH and ESP, and allow a packet to be accepted even though only part of its payload was authenticated. Reject a fragment when its secpath differs from the fragments already in the queue, and keep overlap statistics limited to actual overlaps.
CVE-2026-99859
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: ppp: fix stale pointer access after pskb_may_pull in ppp_ccp_peek ppp_ccp_peek() caches a pointer to skb->data in dp after the first pskb_may_pull(), then uses dp after a second pskb_may_pull(skb, len + 2) in the CCP_CONFACK handler. If the second pull triggers pskb_expand_head() due to a cloned skb or frag linearization, skb->head is freed and reallocated, leaving dp stale. The stale dp is subsequently used in CCP_OPT_LENGTH() and passed to decomp_init()/comp_init() which read from the freed memory. Re-derive dp from skb->data after the second pskb_may_pull.
CVE-2026-99858
번역 확인 필요2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었다: nvmet-rdma: nvmet_rdma_map_sgl_inline()에서 범위를 벗어난 쓰기를 수정 nvmet_rdma_map_sgl_inline()는 호스트가 제공한 포함 칼럼 SGL 오프셋을 "off + len > inline_data_size"로 64비트 산술로 평가하여 경계 검사한다. off는 호스트 SGL 디스크립터(le64_to_cpu(sgl->addr))에서 그대로 가져오고, len은 64비트로 승격되므로 합이 반올림된다: len 내의 2^64에 해당하는 오프셋은 작아져 검사 통과. 그 후 off는 page_idx = off / PAGE_SIZE로 고정 크기 rsp->cmd->inline_sg[] 배열(NVMET_RDMA_MAX_INLINE_SGE 항목)을 인덱싱하는 데 사용되므로, 잘 구성된 오프셋은 nvmet_rdma_use_inline_sg()를 통해 경계 밖의 스캐터리스트 인덱스로 쓰여진다. 매핑은 수신된 칼럼을 처리하는 동안 명령이 실행되기 전에 실행되므로 원격 RDMA 피어가 이 경로에 도달할 수 있다(Connect 칼럼은 쓰기이며 컨트롤러가 아직 없는 큐에서 이 경로를 사용). 호스트가 최종 변위의 하위 비트만 제어하므로 기대되는 영향은 경계 밖 쓰기로, 대상에 장애를 유발하는 원격 서비스 거부(DoS)다. 이 래핑은 5월에 linux-nvme에서 KASAN 재현과 함께 보고되었고, 아래의 검사가 그 스레드에서 제안되었다. 적용된 수정인 48c0162f647b은 오프셋 매핑 방식을 재구성했지만 원래의 검사를 유지했고, 그 페이지 인덱스는 래핑된 오프셋을 inline_sg[]의 경계 밖 인덱스로 바꾼다. 랩핑이 되기 전에 오프셋을 거부한다. AI 도움으로 정적 분석에 의해 독립적으로 발견되었으며 런타임에서 재현되지 않았다.
CVE-2026-99857
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: nvmet-fc: only send read data for successful commands When a read command completes with an error, __nvmet_fc_fcp_nvme_cmd_done() still pushes the whole data buffer to the host before the response. nvmet_fc_alloc_tgt_pgs() allocates that buffer with sgl_alloc() and no __GFP_ZERO, and a command rejected by nvmet_check_transfer_len() leaves it untouched, so the host receives stale target memory. The buffer is as large as the data length in the command IU, so the amount of stale memory returned is up to the host. The tcp and rdma targets send data only when cqe->status is zero (see nvmet_tcp_need_data_out() and nvmet_rdma_need_data_out()), so no nvmet command can rely on returning data with an error status. Do the same for fc. The ERSP then reports a transferred length of fod->offset, which is 0, matching what nvme_fc_fcpio_done() checks on the host. Tested over nvme-fcloop: a failed read command no longer transfers data and still completes with its error status, and successful reads are unaffected.
CVE-2026-99856
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: nvmet: pci-epf: report transport errors in command completions When the PCI endpoint target fails a command itself, the host receives a successful completion. This happens for a data length above MDTS, malformed PRPs or SGLs, a buffer allocation failure, an SQ that is not live, and a failed DMA of the command data. A write whose data cannot be fetched from the host is thus reported as written, though nothing was executed. Each of these paths sets iod->status and calls nvmet_pci_epf_complete_iod(), which then reloads iod->status from iod->cqe.status. The nvmet core only fills that field when it completes the request, which these paths never do, so it is still zero and nvmet_pci_epf_cq_work() posts a success status to the host. Drop the reload. Every path already sets iod->status before completion: nvmet_pci_epf_queue_response() copies it from the request's CQE, and the transport error paths set it themselves. Found by code inspection.
CVE-2026-99855
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: nvmet: pci-epf: require SGLs to match the command data length The PCI endpoint target sends the host every byte a read command's SGL describes, even when the SGL describes more than the command transfers. The excess is kmalloc() memory the command never wrote, so the host receives stale target memory. Any successful read can do this, including Identify. nvmet_pci_epf_alloc_iod_data_buf() allocates each segment at the length of its SGL data descriptor, but sets req->transfer_len from iod->data_len, the length the command implies. Once the command completes, nvmet_pci_epf_transfer_iod_data() sends every segment in full. Nothing compares the descriptor lengths with iod->data_len, and the MDTS check only bounds iod->data_len. Fail the command with Data SGL Length Invalid when the data descriptors do not add up to iod->data_len, before any segment is allocated. The tcp and rdma transports take the data length from the SGL itself, so there most commands already reject a mismatch in nvmet_check_transfer_len(). PRP lists are built from iod->data_len and are unaffected. Found by code inspection.
CVE-2026-99854
2026년 11월 30일Linux 커널에서 다음 취약점이 해결되었습니다: nvmet-fc: 관리 큐 할당 실패 시 연결을 해제합니다 새 연결이 생성된 후 초기 관리 큐 할당이 실패하면 nvmet_fc_ls_create_association()는 연결 참조만 제거해 연결을 해제합니다. 그러나 그때 연결은 이미 대상 포트의 assoc_list에 있으며, 그 목록에서의 제거는 이 오류 경로에서 호출되지 않는 nvmet_fc_delete_target_assoc()에서만 발생합니다. 해제된 연결은 여전히 목록에 남아 있어 이후의 조회 및 포트 정리 과정에서 접근될 수 있고, 할당 시점에 보유한 대상 포트 참조가 누수됩니다. 원격 호스트는 Create Association LS를 통해 할당 가능한 큐보다 큰 큐를 요청하면 이 문제를 신뢰성 있게 유발할 수 있습니다. 참조를 직접 드랍하는 대신 일반적인 연결 해제를 예약하십시오. 해제 절차는 목록에서 연결을 제거하고 최종 참조 드롭이 해제되기 전에 대상 포트 참조를 해제합니다.
CVE-2026-99853
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: fix io_work priority inversion when send_mutex is held Commit f42d4796ee10 ("nvme-tcp: fix I/O stalls on congested sockets") added a check in nvme_tcp_io_work() that sets pending to true when the queue has pending requests and the socket is writeable. The check is placed after the mutex_trylock() block, so it also runs when mutex_trylock(&queue->send_mutex) failed and io_work did not send anything. When .queue_rq sends a request directly from its own context, it holds send_mutex and can give up the CPU in lock_sock_nested() when another task needs the CPU, for example the io_work kworker of the same queue, which runs on the same CPU. Then io_work cannot take send_mutex, but the requests are still on req_list and the socket is writeable, so pending is set to true. io_work loops until the deadline and queues itself again on io_cpu, without sleeping. This is a priority inversion. io_work runs on the high priority nvme_tcp_wq and cannot make progress until send_mutex is released, but it keeps running. The task holding send_mutex runs at normal priority and needs the CPU to release it. The scheduler keeps giving the CPU to io_work, so the task holding send_mutex may not run again, and the requests on the queue are not sent and time out. This is the same problem that commit 70f437fb4395 ("nvme-tcp: fix io_work priority inversion") fixed. That commit removed "pending = !llist_empty(&queue->req_list)" from the path where mutex_trylock() fails, and let the task holding send_mutex queue io_work again in nvme_tcp_queue_request() after it releases the mutex. The new check brings back the same behavior in a different form. Two things make this easier to hit. nvme_tcp_queue_request() sends directly only when it runs on io_cpu, so the task that takes send_mutex is on the same CPU as the io_work kworker of that queue when it takes the mutex. Also, when the tasks are in a cgroup with the cpu controller enabled, the whole group competes with the nice -20 kworker as one entity, so each task in the group gets even less CPU time. We hit this on a 6 CPU VM running a database on nvme-tcp storage. In the vmcore, 2 tasks held send_mutex of 2 queues and were runnable in lock_sock_nested() for 103 seconds, while the kworkers for those queues kept running io_work on their CPUs. All database tasks were in one cgroup, which got only about 0.3% of the CPU against the nice -20 kworker. Requests timed out, and blk_mq_timeout_work() waited in synchronize_srcu() for the tasks still in .queue_rq. Only do the pending check if io_work could take send_mutex. If it could not, the task holding send_mutex sends what it can in nvme_tcp_send_all(), and queues io_work again after it releases the mutex if requests are still pending, so no request is left behind.
CVE-2026-99852
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: nvmet: 무결성 할당 실패 시 blk plug 종료 nvmet_bdev_execute_rw()가 바이오를 구성하기 전에 플러그를 시작하지만, nvmet_bdev_alloc_bip() 실패 시 취하는 두 가지 오류 종료는 blk_finish_plug()를 호출하지 않고 반환합니다. current->plug가 반환 함수의 스택 프레임을 가리키고 있어, 다음 blk_flush_plug()가 오래된 리스트를 순회합니다. 두 실패를 공통 종료 경로로 넘겨 플러그를 종료합니다.
CVE-2026-99851
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: nvmet: 인증 재시도 시 오래된 협상 상태를 해제 SEND(NEGOTIATE)로 DH-HMAC-CHAP 협상을 재시도하면 sq->dhchap_step이 재설정되지만, 이전의 c1/c2/skey는 해제되지 않고 teardown 시 nvmet_auth_sq_free()에서만 해제됩니다. 다음 CHALLENGE/REPLY 교환은 그 포인터들을 새로 할당된 메모리로 덮어씁니다. 인증되지 않은 호스트가 협상 메시지를 무한 반복하면 라운드당 수십 바이트를 누수하고 대상 메모리를 천천히 소진시킬 수 있습니다. 새 협상을 설정하기 전에 nvmet_auth_sq_free()로 오래된 협상 상태를 명확히 해제합니다. 또한 dhchap_skey_len을 0으로 재설정합니다: 만약 DH 세션 키가 이미 설정되어 있다면, dhvlen=0인 다음 라운드에서 NULL skey를 여전히 길이가 0이 아닌 잘못된 값으로 HMAC 코드에 전달하고 역참조하는 것을 막습니다.
CVE-2026-99850
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: fsverity: Explicitly require FMODE_READ to retrieve hashes The comment in fsverity_ioctl_read_metadata(), which justifies not checking for FMODE_READ, doesn't consider that the nonstandard access mode 3 (ioctl-only) exists. Opening an ioctl-only fd generally requires read (and write) permission. However, there are gaps with certain LSMs: an ioctl-only fd requests read (and write) permission via security_inode_permission, but not security_file_open. With certain LSMs relying on the latter, such as Landlock and AppArmor, an ioctl-only fd can be opened without the LSM granting read (and write) permission. Since FS_IOC_READ_VERITY_METADATA returns hashes of file contents blocks, it should require read permission. This also applies to FS_IOC_MEASURE_VERITY, which returns a hash for the whole file. Meanwhile, ioctl-only fds are a rarely-used feature, not known to be used with either ioctl. Therefore, just disallow these ioctls on ioctl-only file descriptors, similar to what was already done with FS_IOC_ENABLE_VERITY. More specifically, explicitly check for FMODE_READ. This also covers write-only fds to non-verity files which otherwise would have failed with ENODATA. This change in error code for write-only fds should be fine too, as these ioctls cannot be usefully used with write-only fds anyway, but it's worth noting as another technicality.
CVE-2026-99849
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: fsverity: Tell LSMs about signature only after verity is enabled FS_IOC_ENABLE_VERITY calls security_inode_setintegrity() before verity has finished being enabled. That's broken because enabling verity can still fail at that point, e.g. due to insufficient xattr space. Afterwards, arbitrary contents can be written to the file, which doesn't actually have verity enabled. The in-core inode stays the same, so the LSM considers it to have verity enabled with a valid signature. (Or rather, in the case of IPE, which is the only LSM that implements security_inode_setintegrity(), it also checks IS_VERITY(), which can be bypassed by enabling verity with no signature after the file writes.) Fix this by moving the call to security_inode_setintegrity() out of fsverity_verify_signature() and into a new function that is called from the appropriate places.
CVE-2026-99848
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: apparmor: fix NULL ctx->peer derefs in unix socket ctx updates aa_unix_file_perm lazily refreshes the AppArmor context cached on a unix socket. Two of the helpers it uses assume ctx->peer has already been set: update_peer_ctx -> l = aa_label_merge(old, label, GFP_ATOMIC); update_sk_ctx -> } else if (aa_label_is_subset(plabel, old)) { where @old is ctx->peer. Neither aa_label_merge nor aa_label_is_subset allows NULL. So both fault on the aa_label->size load. BUG: kernel NULL pointer dereference, address: 000000000000004c RIP: 0010:__aa_label_next_not_in_set+0xb/0xd0 Call Trace: aa_label_is_subset+0x3f/0x70 aa_unix_file_perm+0x5e8/0x9d0 aa_file_perm+0x45a/0x550 apparmor_file_permission+0x44/0xb0 security_file_permission+0x40/0x100 rw_verify_area+0x56/0x180 vfs_write+0x7c/0x480 ksys_write+0xbf/0xf0 ctx->peer is only recorded for stream connections and socket pairs. unix_dgram_connect sets unix_peer(sk) without going through that path, so a connected AF_UNIX datagram socket has unix_peer(sk) set while ctx->peer is still NULL, and the first write that needs revalidation reaches the helpers above. Both derefs date back to the Fixes: commit, but the update_sk_ctx() one was dormant until commit 4483efe4f215 ("apparmor: fix shadowing of plabel that prevents cache from being updated") stopped @plabel being shadowed, which is why bisecting the oops lands there. A NULL @old just means no peer label has been recorded yet, so install the label directly instead of merging or comparing against it.
CVE-2026-99847
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: apparmor: don't revalidate inherited files under files->file_lock aa_inherit_files() revalidates inherited files on exec using iterate_fd(), which calls the callback with files->file_lock held, so the revalidation is done with IN_ATOMIC. However the unix socket mediation path can sleep: aa_unix_file_perm() drops a ref on the peer's path with path_put(), and unix_fs_perm() -> aa_path_perm() allocates a buffer with aa_get_buffer(false), resulting in BUG: sleeping function called from invalid context at fs/dcache.c:1039 ... dput.part.0+0x24/0x180 path_put+0x2c/0x60 aa_unix_file_perm+0x42a/0x17b0 aa_file_perm+0xcd3/0x1060 match_file+0x10b/0x190 iterate_fd+0xe6/0x280 aa_inherit_files+0x250/0x4f0 Only grab a ref on each file under iterate_fd(), and revalidate it after the lock is dropped, so revalidation is done with no locks held and does not need to be atomic. Denied fds are still replaced with /dev/null, or closed if it can not be opened.
CVE-2026-99846
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: iomap: don't mark unwritten parts of a folio uptodate For a buffered write into a hole, an unwritten or new extent, or past EOF __iomap_write_begin() zeroes the parts of the blocks outside of the write and then marks the blocks uptodate. That includes the range of the write itself which still holds whatever was in the folio before. It only becomes valid once the copy from userspace has filled it in. But the copy can come up short and __iomap_write_end() only rejects a short copy if the folio isn't uptodate. If the zeroed blocks were all that was missing the folio is uptodate by then, the short copy is accepted, and the rest of the range is exposed to readers and can end up on disk. A source buffer that ends in an unmapped page is enough: ftruncate(fd, 4096); pwrite(fd, p, 3000, 100); /* 16 bytes at p, then PROT_NONE */ pread(fd, buf, 4096, 0); The write returns 16 and the read returns 2984 bytes of whatever was in that page before. If other blocks of the folio aren't uptodate the short copy is rejected but the zeroed blocks keep their uptodate bits and the retry with the copied length leaves the same bytes behind. Only mark blocks uptodate in __iomap_write_begin() after reading them. __iomap_write_end() marks the zeroed blocks uptodate once the copy has succeeded and rejects a short copy. Willy reported this back in 2024 (cf. [1]) and Zhang Yi posted the same fix (cf. [2]) but it never got merged. [1]: https://lore.kernel.org/all/[email protected] [2]: https://lore.kernel.org/all/[email protected]
CVE-2026-99845
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: iomap: 큰 청크를 두고 바이오를 초과하지 못하게 하다 무결성 I/O에서 바이오는 max_integrity_io_size()를 초과해서는 안 됩니다. 무결성 버퍼는 최대 2 MiB의 단일 할당이기 때문입니다. Writeback 및 버퍼링된 읽기는 바이오에 추가하기 전에 이를 검사합니다: bio->bi_iter.bi_size > iomap_max_bio_size(iomap) - len 감산은 size_t에서 이루어지며 len만으로도 한계치를 초과하면 래핑됩니다. 그러면 검사 자체가 발동하지 않아 바이오가 늘어나고 bio_vec가 바닥나 버립니다. 그것은 쉽게 발생합니다. 한계는 또한 최대 세그먼트 크기로 제한되는데, lpfc 및 qla2xxx와 같이 설정하지 않는 SCSI 호스트의 경우 64 KiB이며, XFS는 최대 2 MiB의 folios를 사용합니다. 미리 할당된 300 MiB 파일의 Writeback은 PI가 4.7 MiB를 필요로 하는 단일 바이오를 구성하며 512 바이트 섹터와 8 바이트 튜플을 사용합니다. 이는 kmalloc()이 처리할 수 있는 크기를 초과하므로 bio_integrity_alloc_buf()는 2 MiB 메모리풀 요소로 폴백하고 PI 쓰기가 끝까지 2.7 MiB를 초과하게 만듭니다. 길이를 먼저 자체적으로 확인합니다. 한계치를 초과하는 청크도 여전히 자체 바이오를 얻으며 이는 folio보다 절대 커지지 않습니다.
CVE-2026-99844
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: mount: refuse setns() with a shared fs_struct again mntns_install() refuses to switch the mount namespace of a task that shares its fs_struct, since root and cwd of the others would move to a namespace they are not in. It looks at nsset->fs for that. If more than the mount namespace is asked for, that is a private copy made by prepare_nsset(), which has one user by definition; commit_nsset() then writes root and cwd of the copy to the fs_struct of the task. A thread of a process with two threads, pidfd of a task in another mount namespace: setns(pidfd, CLONE_NEWNS) -EINVAL setns(pidfd, CLONE_NEWNS | CLONE_NEWUTS) 0 and after the second call the other thread, still in the old mount namespace, has lost its cwd (/tmp became /) and sees the mounts of the other namespace under /. Look at the fs_struct that is going to be changed. The second call then fails with -EINVAL like the first one.