Lung infections stem from inflammation or swelling near the lungs often caused by viruses, fungi, or bacteria. Common lung infections include influenza (the flu), tuberculosis, bronchitis, and pneumonia.