KRAS mutations occupied a significant portion of driver gene mutations in NSCLC with comorbid IP, particularly when presenting a UIP pattern in chest CT. Here, KRAS is linked to idiopathic pulmonary fibrosis.