The invention relates to a control valve (1) for a device for the variable setting of the control times of gas exchange valves of an internal combustion engine having a valve housing (2), which is implemented as hollow, and which has at least one inflow connection (P), at least one exhaust connection (T), and at least two working connections (A, B), and a hydraulic medium conduction insert (10), which is disposed in the valve housing (2) and implemented as hollow, having hydraulic medium conduction channels (11, 12, 13, 14), which are disposed in the wall of the hydraulic medium conduction insert (10) and communicate with the working connections (A, B), and a control piston (3), which is disposed in the hydraulic medium conduction insert (10), wherein said hydraulic medium conduction insert (10) has a guide sleeve (15), in which said control piston (3) is guided, said guide sleeve (15) has a plastic encapsulation (16), in which at least two of said hydraulic medium conduction channels (11, 12, 13, 14) are disposed, and a filter fabric (17) is provided between said plastic encapsulation (16) and said guide sleeve (15).