Here the authors perform RNA interference screens in 3D cultures of primary tumour cells with KRAS activation and p53 loss and identify UHRF1 as a vulnerability of KRAS-mutant lung cancers. Here, TP53 is linked to lung cancer.