which layer of meninges is affected in meningitis
The three membranes - pia mater, arachnoid mater and dura mater
Meningitis
The meninges comprise three membranes that, together with the cerebrospinal fluid, enclose and protect the brain and spinal cord (the central nervous system). The pia mater is a delicate impermeable membrane that firmly adheres to the surface of the brain, following all the minor contours. The arachnoid mater (so named because of its spider-web-like appearance) is a loosely fitting sac on top of the pia mater. The subarachnoid space separates the arachnoid and pia mater membranes and is filled with cerebrospinal fluid. The outermost membrane, the dura mater, is a thick durable membrane, which is attached to both the arachnoid membrane and the skull.

wiki:20616103
Meningitis [SEP] Mechanism
The blood–brain barrier becomes more permeable, leading to "vasogenic" cerebral edema (swelling of the brain due to fluid leakage from blood vessels). Large numbers of white blood cells enter the CSF, causing inflammation of the meninges and leading to "interstitial" edema (swelling due to fluid between the cells). In addition, the walls of the blood vessels themselves become inflamed (cerebral vasculitis), which leads to decreased blood flow and a third type of edema, "cytotoxic" edema. The three forms of cerebral edema all lead to increased intracranial pressure; together with the lowered blood pressure often encountered in acute infection, this means that it is harder for blood to enter the brain, consequently brain cells are deprived of oxygen and undergo apoptosis (programmed cell death).