rituximab, lenalidomide, and nivolumab in treating participants with relapsed or refractory non-germinal center type diffuse large b cell lymphoma or primary central nervous system lymphoma

Conditions: Recurrent Central Nervous System Lymphoma; Recurrent Diffuse Large B-Cell Lymphoma; Refractory Central Nervous System Lymphoma; Refractory Diffuse Large B-Cell Lymphoma

Summary: this phase i/ii trial studies the side effects and best dose of lenalidomide when given in combination with rituximab and nivolumab and how well they work in treating participants with non-germinal center type diffuse large b cell lymphoma or primary central nervous system lymphoma that has come back or isn't responding to treatment. monoclonal antibodies, such as rituximab and nivolumab, may interfere with ability of cancer cells to grow and spread. drugs used in chemotherapy, such as lenalidomide, work in different ways to stop the growth of cancer cells, either by killing the cells, by stopping them from dividing, or by stopping them from spreading. giving rituximab, lenalidomide, and nivolumab may work better in treating participants with diffuse large b cell lymphoma.

primary objectives: i. determine the maximum tolerated dose and toxicity profile of lenalidomide in combination with standard doses of rituximab and nivolumab in relapsed/refractory (r/r) diffuse large b cell lymphoma (dlbcl) (non-germinal center b cell \[non-gcb\]) and in primary central nervous system (cns) lymphoma (pcnsl) (phase i). ii. evaluate the efficacy of lenalidomide in combination with standard doses of rituximab and nivolumab in r/r non-gcb type dlbcl and pcnsl (phase ii). secondary objectives: i. to assess the safety and tolerability of nivolumab when combined with lenalidomide and rituximab. ii. to determine the time to progression (complete response, partial response or stable disease), progression free survival (pfs) and overall survival (os). iii. to evaluate the difference in overall response rate between those with and without programmed cell death ligand 1 (pd-l1) protein expression in tumor (subgroup analysis). iv. to evaluate the difference in overall response rate between those with and without myd88 mutation in tumor (subgroup analysis). exploratory objectives: i. to perform pd-l1, pd-1 expression on tumor cells by immunohistochemistry including double staining for pax-5 and pd-l1 and cd68 and pd-l1, cd3/cd4/cd8 for t cell infiltration, cd68 for tumor associated macrophages. ii. to assess for presence of myd88 l265 mutation by allele specific polymerase chain reaction (pcr) in tumor tissue and /or cerebrospinal fluid (csf) (where lumbar puncture is clinically performed). iii. to perform fluorescence in situ hybridization (fish) for 9p24.1/ pd-l1/pd-l2 locus. iv. to evaluate myd88 pcr on csf (where available). v. to perform gene expression panel for tumor immune response in tumor samples (prioritizing cases in which a second serial biopsy is available). outline: this is a phase i, dose-escalation study of lenalidomide followed by a phase ii study. participants receive nivolumab intravenously (iv) over 60 minutes on days 1 and 15, rituximab iv on day 1, and lenalidomide orally (po) once daily (qd) on days 1-21. treatment repeats every 28 days for up to of 8 courses in the absence of disease progression or unacceptable toxicity. patients with partial response (pr) or stable disease at the end of 8 cycles will be offered lenalidomide and nivolumab maintenance for up to 12 courses. after completion of study treatment, participants are followed up every 3 months for 2 years and then every 6 months until year 4.

Eligibility criteria:
inclusion criteria: * understand and voluntarily sign an informed consent form. * able to adhere to the study visit schedule and other protocol requirements in the opinion of the investigator * patients with histological confirmation of relapsed/refractory non-gcb type (using hans algorithm) diffuse large b cell lymphoma (dlbcl) or relapsed/refractory primary cns lymphoma (pcnsl) with at least one of the following characteristics: * definition of refractory disease: progression of disease based on cheson criteria for dlbcl or international primary cns lymphoma cooperative group for pcnsl either with nonresponse or progression within 3 months of prior therapy * definition of relapsed disease: progression of disease based on cheson criteria for dlbcl or international primary cns lymphoma cooperative group for pcnsl at least 3 months after prior therapy * definition of non-gcb subtype (hans algorithm): cases will be subclassified based on immunohistochemical staining with cd10, bcl-6 and mum-1 as previously described. * patients should have exhausted (or be ineligible for) approved therapies known to provide clinical benefit for dlbcl or pcnsl (e.g. high dose chemotherapy with autologous stem cell transplant, chimeric antigen receptor-transduced \[car-t\] therapy, etc.). * eastern cooperative oncology group (ecog) performance status of =\< 2 at study entry. * absolute neutrophil count \>= 1000/mm\^3 within 45 days prior to initiation of therapy. (patients with documented marrow involvement (with lymphoma) or hypersplenism secondary to involvement of the spleen by lymphoma at the time of randomization are not required to meet the parameter). * platelet count \>= 75k /mm\^3 within 45 days prior to initiation of therapy. (patients with documented marrow involvement (with lymphoma) or hypersplenism secondary to involvement of the spleen by lymphoma at the time of randomization are not required to meet the parameter). * serum creatinine =\ 40 ml/min within 45 days prior to initiation of therapy. (patients with documented marrow involvement (with lymphoma) or hypersplenism secondary to involvement of the spleen by lymphoma at the time of randomization are not required to meet the parameter). * total bilirubin =\< 1.5 mg/dl within 45 days prior to initiation of therapy. (patients with documented marrow involvement (with lymphoma) or hypersplenism secondary to involvement of the spleen by lymphoma at the time of randomization are not required to meet the parameter). * aspartate aminotransferase (ast) (serum glutamic oxaloacetic transaminase \[sgot\]) and alanine aminotransferase (alt) (serum glutamate pyruvate transaminase \[sgpt\]) =\< 2 x upper limit of normal (uln) within 45 days prior to initiation of therapy. (patients with documented marrow involvement (with lymphoma) or hypersplenism secondary to involvement of the spleen by lymphoma at the time of randomization are not required to meet the parameter). * disease free of prior malignancies for \>= 3 years with exception of currently treated basal cell or squamous cell carcinoma of the skin, or carcinoma "in situ" of the cervix or breast. * all study participants must be registered into the mandatory revlimid risk evaluation and mitigation strategies (rems) program, and be willing and able to comply with the requirements of the revlimid rems program. program, and be willing and able to comply with the requirements of the revlimid rems program. \* females of childbearing potential (fcbp) must have a negative serum or urine pregnancy test with a sensitivity of at least 50 miu/ml within 10-14 days and again within 24 hours prior to prescribing lenalidomide for cycle 1 (prescriptions must be filled within 7 days as required by the revlimid rems program) and must either commit to continued abstinence from heterosexual intercourse or begin two acceptable methods of birth control, one highly effective method and one additional effective method at the same time, at least 28 days before she starts taking lenalidomide. fcbp must also agree to ongoing pregnancy testing. men must agree to use a latex condom during sexual contact with a fcbp even if they have had a successful vasectomy. \*\* a female of childbearing potential is a sexually mature female who: 1) has not undergone a hysterectomy or bilateral oophorectomy; or 2) has not been naturally postmenopausal for at least 24 consecutive months (i.e., has had menses at any time in the preceding 24 consecutive months). * able to take aspirin (81 or 325 mg) daily or for thromboprophylaxis with lenalidomide. exclusion criteria: * any serious medical condition, laboratory abnormality, or psychiatric illness that would prevent the subject from signing the informed consent. * pregnant or breast feeding females (lactating females must agree not to breast feed while taking lenalidomide). * any condition, including the presence of laboratory abnormalities, which places the subject at unacceptable risk if he/she were to participate in the study or confounds the ability to interpret data from the study. * use of any other experimental drug or therapy within 28 days of baseline. * known hypersensitivity to thalidomide. * known prior development of erythema nodosum if characterized by a desquamating rash while taking thalidomide or similar drugs. * concurrent use of other anti-cancer agents or treatments. * patients with a prior history of pulmonary toxicity due to medications (ex: history of carmustine \[bcnu\] toxicity). * active human immunodeficiency virus (hiv) infection or infectious hepatitis, type b or c. * patients with a past or resolved hepatitis b virus (hbv) infection (defined as the presence of hepatitis b core antibody \[anti-hbc\] and absence of hepatitis b surface antigen \[hbsag\]) may be included if hbv deoxyribonucleic acid (dna) is undetectable. if enrolled, patients must be willing to undergo monthly hbv dna testing. * hiv positive patients may enroll if they meet all of the below criteria: * hiv is sensitive to antiretroviral therapy. * must be willing to take effective antiretroviral therapy if indicated. * no history of cd4 prior to or at the time of lymphoma diagnosis \< 300 cells/mm\^3. * no history of acquired immunodeficiency syndrome (aids)-defining conditions. * if on antiretroviral therapy, must not be taking zidovudine or stavudine. * must be willing to take prophylaxis for pneumocystis jiroveci pneumonia (pcp) during therapy and until at least 2 months following the completion of therapy or until the cd4 cells recover to over 250 cells/mm\^3, whichever occurs later. * a diagnosis of deep vein thromboses in the preceding four weeks of study enrollment. * subjects with active interstitial pneumonitis. * patient with active, uncontrolled infections (patients must be afebrile for \> 48 hours off antibiotics). * patient with clinically significant history of liver disease, including viral or other hepatitis, current alcohol abuse, or cirrhosis. * subjects with active, known or suspected autoimmune disease. subjects with vitiligo, type i diabetes mellitus, residual hypothyroidism due to autoimmune condition only requiring hormone replacement, psoriasis not requiring systemic treatment, or conditions not expected to recur in the absence of an external trigger are permitted to enroll. * evidence of significant, uncontrolled concomitant diseases that could affect compliance with the protocol or interpretation of results or that could increase risk to the patient, including renal disease that would preclude chemotherapy administration or pulmonary disease (including obstructive pulmonary disease and history of bronchospasm). * major surgery within 4 weeks prior to cycle 1, other than for diagnosis. * malabsorption syndrome or other condition that precludes oral route of administration of lenalidomide. * vaccinations with a live vaccine within 28 days prior to start of treatment or need for live vaccine at any time during study treatment. * patient must not have serious medical or psychiatric illness likely to interfere with participation in this clinical study in the opinion of the investigator. * inability to swallow oral medications. * subjects with new york heart association (nyha) class iii or iv heart failure.